mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-14 08:30:58 +00:00
polymost.cpp: fix issue where floors & ceilings with DAMETH_MASKPROPS were not being blended
git-svn-id: https://svn.eduke32.com/eduke32@7624 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
81ca063f06
commit
775a0de6c1
1 changed files with 9 additions and 0 deletions
|
@ -4025,6 +4025,9 @@ static void polymost_internal_nonparallaxed(vec2f_t n0, vec2f_t n1, float ryp0,
|
||||||
if (globalposz > getflorzofslope(sectnum, globalposx, globalposy))
|
if (globalposz > getflorzofslope(sectnum, globalposx, globalposy))
|
||||||
domostpolymethod = DAMETH_BACKFACECULL; //Back-face culling
|
domostpolymethod = DAMETH_BACKFACECULL; //Back-face culling
|
||||||
|
|
||||||
|
if (domostpolymethod & DAMETH_MASKPROPS)
|
||||||
|
glEnable(GL_BLEND);
|
||||||
|
|
||||||
polymost_domost(x0, y0, x1, y1); //flor
|
polymost_domost(x0, y0, x1, y1); //flor
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -4032,9 +4035,15 @@ static void polymost_internal_nonparallaxed(vec2f_t n0, vec2f_t n1, float ryp0,
|
||||||
if (globalposz < getceilzofslope(sectnum, globalposx, globalposy))
|
if (globalposz < getceilzofslope(sectnum, globalposx, globalposy))
|
||||||
domostpolymethod = DAMETH_BACKFACECULL; //Back-face culling
|
domostpolymethod = DAMETH_BACKFACECULL; //Back-face culling
|
||||||
|
|
||||||
|
if (domostpolymethod & DAMETH_MASKPROPS)
|
||||||
|
glEnable(GL_BLEND);
|
||||||
|
|
||||||
polymost_domost(x1, y1, x0, y0); //ceil
|
polymost_domost(x1, y1, x0, y0); //ceil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (domostpolymethod & DAMETH_MASKPROPS)
|
||||||
|
glDisable(GL_BLEND);
|
||||||
|
|
||||||
domostpolymethod = DAMETH_NOMASK;
|
domostpolymethod = DAMETH_NOMASK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue