don't flush garbage to the screen on the first render frame

This commit is contained in:
Bill Currie 2003-09-05 06:55:12 +00:00
parent 3a8cfb050e
commit 89586e0181
1 changed files with 4 additions and 1 deletions

View File

@ -253,11 +253,13 @@ void
SCR_UpdateScreen (double realtime, SCR_Func *scr_funcs)
{
double time1 = 0, time2;
static int begun = 0;
if (block_drawing)
return;
GL_EndRendering ();
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 ();