mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-29 23:42:33 +00:00
Fix translucent masked wall sorting issue in Polymost
git-svn-id: https://svn.eduke32.com/eduke32@7792 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
fe4245dfc3
commit
9fde5434f8
1 changed files with 7 additions and 7 deletions
|
@ -8920,17 +8920,17 @@ killsprite:
|
||||||
}
|
}
|
||||||
|
|
||||||
polymost_setClamp(false);
|
polymost_setClamp(false);
|
||||||
for (i = 0; i < maskwallcnt;)
|
int32_t numMaskWalls = maskwallcnt;
|
||||||
|
maskwallcnt = 0;
|
||||||
|
for (i = 0; i < numMaskWalls; i++)
|
||||||
{
|
{
|
||||||
if (polymost_maskWallHasTranslucency((uwalltype *) &wall[thewall[maskwall[maskwallcnt-1]]]))
|
if (polymost_maskWallHasTranslucency((uwalltype *) &wall[thewall[maskwall[i]]]))
|
||||||
{
|
{
|
||||||
int16_t maskSwap = maskwall[i];
|
maskwall[maskwallcnt] = maskwall[i];
|
||||||
maskwall[i] = maskwall[maskwallcnt-1];
|
maskwallcnt++;
|
||||||
maskwall[maskwallcnt-1] = maskSwap;
|
|
||||||
++i;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
renderDrawMaskedWall(--maskwallcnt);
|
renderDrawMaskedWall(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
glEnable(GL_BLEND);
|
glEnable(GL_BLEND);
|
||||||
|
|
Loading…
Reference in a new issue