mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 19:20:46 +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,10 +5827,16 @@ void polymost_drawmaskwall(int32_t damaskwallcnt)
|
||||||
if (!waloff[globalpicnum])
|
if (!waloff[globalpicnum])
|
||||||
{
|
{
|
||||||
// restore this to normal
|
// restore this to normal
|
||||||
|
if (polymost_maskWallHasTranslucency(wal))
|
||||||
|
{
|
||||||
|
glEnable(GL_ALPHA_TEST);
|
||||||
|
} else
|
||||||
|
{
|
||||||
glDisable(GL_BLEND);
|
glDisable(GL_BLEND);
|
||||||
glEnable(GL_ALPHA_TEST);
|
glEnable(GL_ALPHA_TEST);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue