mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-27 06:34:11 +00:00
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:
parent
e8b36b1a71
commit
961ea0b693
1 changed files with 16 additions and 18 deletions
|
@ -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 ();
|
||||
|
|
Loading…
Reference in a new issue