In fullscreen_tint_gl() disable GL_FOG, preventing nasty flickering.

Which was especially noticeable in the Lunatic build. Also, use
glPushAttrib/glPopAttrib there.

git-svn-id: https://svn.eduke32.com/eduke32@4176 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2013-11-22 19:26:54 +00:00
parent 198ba2d697
commit 82e50a14c7

View file

@ -153,9 +153,12 @@ void fullscreen_tint_gl(uint8_t r, uint8_t g, uint8_t b, uint8_t f)
bglPushMatrix();
bglLoadIdentity();
bglPushAttrib(GL_ENABLE_BIT);
bglDisable(GL_DEPTH_TEST);
bglDisable(GL_ALPHA_TEST);
bglDisable(GL_TEXTURE_2D);
bglDisable(GL_FOG);
bglEnable(GL_BLEND);
bglColor4ub(r, g, b, f);
@ -166,7 +169,7 @@ void fullscreen_tint_gl(uint8_t r, uint8_t g, uint8_t b, uint8_t f)
bglVertex2f(.0f, -2.5f);
bglEnd();
bglDisable(GL_BLEND);
bglPopAttrib();
bglPopMatrix();
bglMatrixMode(GL_PROJECTION);