mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 03:30:46 +00:00
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:
parent
0646835719
commit
7d3cbf4f83
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue