polymost_drawpoly(): fix issue where mirrors wouldn't update the depth buffer

git-svn-id: https://svn.eduke32.com/eduke32@6888 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
pogokeen 2018-05-17 22:33:13 +00:00
parent e87b6b902f
commit 5ee2bbc771

View file

@ -3142,7 +3142,12 @@ static void polymost_drawpoly(vec2f_t const * const dpxy, int32_t const n, int32
; /* do nothing */
}
if (!(method & DAMETH_MASKPROPS) && fullbright_pass < 2)
if (!waloff[globalpicnum])
{
glEnable(GL_BLEND);
glDisable(GL_ALPHA_TEST);
}
else if (!(method & DAMETH_MASKPROPS) && fullbright_pass < 2)
{
glDisable(GL_BLEND);
glDisable(GL_ALPHA_TEST);