Whitespace, slight code reorder in gl_rmain.c

This commit is contained in:
Ragnvald Maartmann-Moe IV 2004-02-09 04:13:44 +00:00
parent 372b763704
commit 88c5d21ece
2 changed files with 5 additions and 3 deletions

View file

@ -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++);

View file

@ -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);
}