diff --git a/libs/video/renderer/gl/gl_rmain.c b/libs/video/renderer/gl/gl_rmain.c index 4b8130de7..b3893c20a 100644 --- a/libs/video/renderer/gl/gl_rmain.c +++ b/libs/video/renderer/gl/gl_rmain.c @@ -114,6 +114,9 @@ static unsigned int R_TestErrors (unsigned int numerous) { switch (qfglGetError ()) { + case GL_NO_ERROR: + return numerous; + break; case GL_INVALID_ENUM: InvalidEnum++; R_TestErrors (numerous++); @@ -138,9 +141,6 @@ R_TestErrors (unsigned int numerous) OutOfMemory++; R_TestErrors (numerous++); break; - case GL_NO_ERROR: - return numerous; - break; default: Unknown++; R_TestErrors (numerous++); diff --git a/libs/video/renderer/gl/gl_screen.c b/libs/video/renderer/gl/gl_screen.c index 5218f8020..dd62949f3 100644 --- a/libs/video/renderer/gl/gl_screen.c +++ b/libs/video/renderer/gl/gl_screen.c @@ -236,6 +236,7 @@ SCR_UpdateScreen (double realtime, SCR_Func *scr_funcs) // also makes polyblend apply to whole screen if (v_blend[3]) { qfglDisable (GL_TEXTURE_2D); + qfglBegin (GL_QUADS); qfglColor4fv (v_blend); @@ -245,6 +246,7 @@ SCR_UpdateScreen (double realtime, SCR_Func *scr_funcs) qfglVertex2f (0, vid.height); qfglEnd (); + qfglColor3ubv (color_white); qfglEnable (GL_TEXTURE_2D); }