mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
Flush console text before rendering menus, and a tiny optimization to fullscreen blend rendering in GL.
This commit is contained in:
parent
e774943f24
commit
942bf55c06
2 changed files with 5 additions and 3 deletions
|
@ -819,6 +819,8 @@ Draw_Fill (int x, int y, int w, int h, int c)
|
|||
void
|
||||
Draw_FadeScreen (void)
|
||||
{
|
||||
GL_FlushText (); // Flush text that should be rendered before the menu
|
||||
|
||||
qfglDisable (GL_TEXTURE_2D);
|
||||
qfglColor4ub (0, 0, 0, 179);
|
||||
qfglBegin (GL_QUADS);
|
||||
|
|
|
@ -816,8 +816,8 @@ SCR_UpdateScreen (double realtime, SCR_Func *scr_funcs)
|
|||
GL_Set2D ();
|
||||
|
||||
// also makes polyblend apply to whole screen
|
||||
qfglDisable (GL_TEXTURE_2D);
|
||||
if (v_blend[3]) {
|
||||
qfglDisable (GL_TEXTURE_2D);
|
||||
qfglBegin (GL_QUADS);
|
||||
|
||||
qfglColor4fv (v_blend);
|
||||
|
@ -828,8 +828,8 @@ SCR_UpdateScreen (double realtime, SCR_Func *scr_funcs)
|
|||
|
||||
qfglEnd ();
|
||||
qfglColor3ubv (color_white);
|
||||
qfglEnable (GL_TEXTURE_2D);
|
||||
}
|
||||
qfglEnable (GL_TEXTURE_2D);
|
||||
|
||||
// draw any areas not covered by the refresh
|
||||
SCR_TileClear ();
|
||||
|
@ -849,7 +849,7 @@ SCR_UpdateScreen (double realtime, SCR_Func *scr_funcs)
|
|||
}
|
||||
|
||||
if (r_speeds->int_val) {
|
||||
// qfglFinish ();
|
||||
// qfglFinish ();
|
||||
time2 = Sys_DoubleTime ();
|
||||
Con_Printf ("%3i ms %4i wpoly %4i epoly\n",
|
||||
(int) ((time2 - time1) * 1000), c_brush_polys,
|
||||
|
|
Loading…
Reference in a new issue