From 7e71d92a02f5de021e5b1884675d46dba2634d16 Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 4 Feb 2005 09:15:10 +0000 Subject: [PATCH] vid_vsync 0 now causes a warning due to the fact GLX_SGI_swap_control has no way to turn off vsync, and suggests vid_restart git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4995 d7cf8633-e32d-0410-b094-e92efae38249 --- vid_glx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vid_glx.c b/vid_glx.c index fea3ce53..70336a9c 100644 --- 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 -- 2.39.2