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:
pogokeen 2019-05-03 15:02:44 +00:00 committed by Christoph Oelckers
parent 81ca063f06
commit 775a0de6c1

View file

@ -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;
} }