]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
vid_vsync 0 now causes a warning due to the fact GLX_SGI_swap_control has no way...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 4 Feb 2005 09:15:10 +0000 (09:15 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 4 Feb 2005 09:15:10 +0000 (09:15 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4995 d7cf8633-e32d-0410-b094-e92efae38249

vid_glx.c

index fea3ce53317615ad8765e3c1eb3920d80730310a..70336a9c216c1fa2b2c49e77f700b2bb56df114d 100644 (file)
--- a/vid_glx.c
+++ b/vid_glx.c
@@ -619,7 +619,8 @@ void VID_Finish (void)
        if (vid_usingvsync != vid_usevsync && gl_videosyncavailable)
        {
                vid_usingvsync = vid_usevsync;
-               qglXSwapIntervalSGI (vid_usevsync);
+               if (qglXSwapIntervalSGI (vid_usevsync))
+                       Con_Print("glXSwapIntervalSGI didn't accept the vid_vsync change, it will take effect on next vid_restart (GLX_SGI_swap_control does not allow turning off vsync)\n");
        }
 
 // handle the mouse state when windowed if that's changed