]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_rmain.c
fix for unitialized variable warnings
[xonotic/darkplaces.git] / gl_rmain.c
index 907822e19cbc1295a82a4bacd4eb131960d25e88..92fa54c41c9a34a183e18e22620078b233f3c3c8 100644 (file)
@@ -706,7 +706,9 @@ void GL_BlendView()
                temptime = currtime;\
                currtime = Sys_FloatTime();\
                VAR = (int) ((currtime - temptime) * 1000000.0);\
-       }
+       }\
+       else\
+               VAR = 0;
 
 /*
 ================
@@ -740,6 +742,8 @@ void R_RenderView (void)
                starttime = currtime = Sys_FloatTime();
 //             Con_Printf("render time: ");
        }
+       else
+               starttime = currtime = 0;
        R_Clear();
        skypolyclear();
        wallpolyclear();