polymost.cpp: Fix issue where state would not be reset properly in polymost_drawmaskwall() when rendering translucent maskwalls with no texture

git-svn-id: https://svn.eduke32.com/eduke32@7626 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
pogokeen 2019-05-06 21:53:44 +00:00 committed by Christoph Oelckers
parent 40737f44cc
commit fc636b53ca
1 changed files with 8 additions and 2 deletions

View File

@ -5827,8 +5827,14 @@ void polymost_drawmaskwall(int32_t damaskwallcnt)
if (!waloff[globalpicnum])
{
// restore this to normal
glDisable(GL_BLEND);
glEnable(GL_ALPHA_TEST);
if (polymost_maskWallHasTranslucency(wal))
{
glEnable(GL_ALPHA_TEST);
} else
{
glDisable(GL_BLEND);
glEnable(GL_ALPHA_TEST);
}
}
}