From 88c5d21ece728dc3ebf9309407e85fb34b719261 Mon Sep 17 00:00:00 2001 From: Ragnvald Maartmann-Moe IV Date: Mon, 9 Feb 2004 04:13:44 +0000 Subject: [PATCH] Whitespace, slight code reorder in gl_rmain.c --- libs/video/renderer/gl/gl_rmain.c | 6 +++--- libs/video/renderer/gl/gl_screen.c | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) 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); }