mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +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,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 ();
|
||||||
|
|
Loading…
Reference in a new issue