mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
don't flush garbage to the screen on the first render frame
This commit is contained in:
parent
3a8cfb050e
commit
89586e0181
1 changed files with 4 additions and 1 deletions
|
@ -253,10 +253,12 @@ void
|
|||
SCR_UpdateScreen (double realtime, SCR_Func *scr_funcs)
|
||||
{
|
||||
double time1 = 0, time2;
|
||||
static int begun = 0;
|
||||
|
||||
if (block_drawing)
|
||||
return;
|
||||
|
||||
if (begun)
|
||||
GL_EndRendering ();
|
||||
|
||||
r_realtime = realtime;
|
||||
|
@ -270,6 +272,7 @@ SCR_UpdateScreen (double realtime, SCR_Func *scr_funcs)
|
|||
return; // not initialized yet
|
||||
|
||||
GL_BeginRendering (&glx, &gly, &glwidth, &glheight);
|
||||
begun = 1;
|
||||
|
||||
if (r_speeds->int_val) {
|
||||
time1 = Sys_DoubleTime ();
|
||||
|
|
Loading…
Reference in a new issue