mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 12:52:46 +00:00
Whitespace, slight code reorder in gl_rmain.c
This commit is contained in:
parent
372b763704
commit
88c5d21ece
2 changed files with 5 additions and 3 deletions
|
@ -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++);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue