From d8dc612f3020e9d9f5f5209e1e6584d9a9a448d8 Mon Sep 17 00:00:00 2001 From: divverent Date: Thu, 19 Apr 2012 19:52:58 +0000 Subject: [PATCH] handle the unlikely case of qglXSwapIntervalSGI becoming invalid after GL restart (found by clang-analyzer) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11802 d7cf8633-e32d-0410-b094-e92efae38249 --- vid_glx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vid_glx.c b/vid_glx.c index 9ac4e02f..5b77483f 100644 --- 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"); } -- 2.39.2