Move cshift render to before hud/text render, so that you can still read it while heavy cshift action is happening.

This commit is contained in:
Ragnvald Maartmann-Moe IV 2001-11-03 07:50:57 +00:00
parent e8b36b1a71
commit 961ea0b693
1 changed files with 16 additions and 18 deletions

View File

@ -828,6 +828,22 @@ SCR_UpdateScreen (double realtime, SCR_Func *scr_funcs, int swap)
GL_Set2D ();
// also makes polyblend apply to whole screen
qfglDisable (GL_TEXTURE_2D);
if (v_blend[3]) {
qfglBegin (GL_QUADS);
qfglColor4fv (v_blend);
qfglVertex2f (0, 0);
qfglVertex2f (vid.width, 0);
qfglVertex2f (vid.width, vid.height);
qfglVertex2f (0, vid.height);
qfglEnd ();
qfglColor3ubv (color_white);
}
qfglEnable (GL_TEXTURE_2D);
// draw any areas not covered by the refresh
SCR_TileClear ();
@ -845,24 +861,6 @@ SCR_UpdateScreen (double realtime, SCR_Func *scr_funcs, int swap)
}
}
// also makes polyblend apply to whole screen
qfglDisable (GL_TEXTURE_2D);
if (v_blend[3]) {
qfglBegin (GL_QUADS);
qfglColor4fv (v_blend);
qfglVertex2f (0, 0);
qfglVertex2f (vid.width, 0);
qfglVertex2f (vid.width, vid.height);
qfglVertex2f (0, vid.height);
qfglEnd ();
qfglColor3ubv (color_white);
}
qfglEnable (GL_TEXTURE_2D);
if (r_speeds->int_val) {
// qfglFinish ();
time2 = Sys_DoubleTime ();