]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_agl.c
further tweaks to prediction
[xonotic/darkplaces.git] / vid_agl.c
index d88188713ad26a2a5ddcd97f0f7e48a3f60267ac..6823840012ec9007e97b682afe6abdc34e5164ca 100644 (file)
--- a/vid_agl.c
+++ b/vid_agl.c
@@ -136,8 +136,11 @@ void VID_Finish (qboolean allowmousegrab)
 
        if (r_render.integer)
        {
+               CHECKGLERROR
                if (r_speeds.integer || gl_finish.integer)
-                       qglFinish();
+               {
+                       qglFinish();CHECKGLERROR
+               }
                qaglSwapBuffers(context);
        }
        VID_UpdateGamma(false, GAMMA_TABLE_SIZE);