Polymost: Bookend the recursive call to polymost_drawpoly as part of the fullbright pass with bglDepthFunc(GL_EQUAL) and bglDepthFunc(GL_LEQUAL) to ensure that the fullbright overlay is always visible and never fights with the sprite itself.

git-svn-id: https://svn.eduke32.com/eduke32@5438 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2015-11-25 12:07:44 +00:00
parent 0646835719
commit 7d3cbf4f83

View file

@ -1801,8 +1801,12 @@ do
bglDisable(GL_FOG); bglDisable(GL_FOG);
bglDepthFunc(GL_EQUAL);
polymost_drawpoly(dpxy, n, method_); polymost_drawpoly(dpxy, n, method_);
bglDepthFunc(GL_LEQUAL);
if (!nofog) if (!nofog)
bglEnable(GL_FOG); bglEnable(GL_FOG);