]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
handle the unlikely case of qglXSwapIntervalSGI becoming invalid after GL restart...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 19 Apr 2012 19:52:58 +0000 (19:52 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 19 Apr 2012 19:52:58 +0000 (19:52 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11802 d7cf8633-e32d-0410-b094-e92efae38249

vid_glx.c

index 9ac4e02fab1e54c66e3c3d22daa71d25df10fa28..5b77483f71c54454c38d7487f045997e018d1a1b 100644 (file)
--- a/vid_glx.c
+++ b/vid_glx.c
@@ -936,7 +936,7 @@ void VID_Finish (void)
                        if (vid_usingvsync != vid_usevsync)
                        {
                                vid_usingvsync = vid_usevsync;
-                               if (qglXSwapIntervalSGI (vid_usevsync))
+                               if (qglXSwapIntervalSGI && 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");
                        }