mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 01:11:44 +00:00
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:
parent
40737f44cc
commit
fc636b53ca
1 changed files with 8 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue