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

View file

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