From 961ea0b693b4ab0457f3238a0a18531a8bd5b99a Mon Sep 17 00:00:00 2001 From: Ragnvald Maartmann-Moe IV Date: Sat, 3 Nov 2001 07:50:57 +0000 Subject: [PATCH] Move cshift render to before hud/text render, so that you can still read it while heavy cshift action is happening. --- libs/video/renderer/gl/gl_screen.c | 34 ++++++++++++++---------------- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/libs/video/renderer/gl/gl_screen.c b/libs/video/renderer/gl/gl_screen.c index 93a75c943..bf2a683f7 100644 --- a/libs/video/renderer/gl/gl_screen.c +++ b/libs/video/renderer/gl/gl_screen.c @@ -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 ();