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

View file

@ -253,11 +253,13 @@ void
SCR_UpdateScreen (double realtime, SCR_Func *scr_funcs) SCR_UpdateScreen (double realtime, SCR_Func *scr_funcs)
{ {
double time1 = 0, time2; double time1 = 0, time2;
static int begun = 0;
if (block_drawing) if (block_drawing)
return; return;
GL_EndRendering (); if (begun)
GL_EndRendering ();
r_realtime = realtime; r_realtime = realtime;
@ -270,6 +272,7 @@ SCR_UpdateScreen (double realtime, SCR_Func *scr_funcs)
return; // not initialized yet return; // not initialized yet
GL_BeginRendering (&glx, &gly, &glwidth, &glheight); GL_BeginRendering (&glx, &gly, &glwidth, &glheight);
begun = 1;
if (r_speeds->int_val) { if (r_speeds->int_val) {
time1 = Sys_DoubleTime (); time1 = Sys_DoubleTime ();