]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
added r_speeds 3 mode which does not use glFinish
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 2 Dec 2007 09:55:26 +0000 (09:55 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 2 Dec 2007 09:55:26 +0000 (09:55 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7744 d7cf8633-e32d-0410-b094-e92efae38249

cl_screen.c

index 99f5d166a9b7d0bad0d896bbfd2d2872e5342de7..454e3e1f6f6c657f3b43e381b839ac0db5503a02 100644 (file)
@@ -643,7 +643,9 @@ void R_TimeReport(char *desc)
                return;
 
        CHECKGLERROR
-       qglFinish();CHECKGLERROR
+       if (r_speeds.integer == 2)
+               qglFinish();
+       CHECKGLERROR
        r_timereport_temp = r_timereport_current;
        r_timereport_current = Sys_DoubleTime();
        t = (int) ((r_timereport_current - r_timereport_temp) * 1000000.0 + 0.5);