git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4863
d7cf8633-e32d-0410-b094-
e92efae38249
void VID_Finish (void)
{
vid_usevsync = vid_vsync.integer && !cls.timedemo && gl_videosyncavailable;
- if (old_vsync != vsync && gl_videosyncavailable)
- qwglSwapIntervalEXT (vsync);
- vid_usingvsync = vsync;
+ if (vid_usingvsync != vid_usevsync && gl_videosyncavailable)
+ {
+ vid_usingvsync = vid_usevsync;
+ qwglSwapIntervalEXT (vid_usevsync);
+ }
// handle the mouse state when windowed if that's changed
vid_usemouse = false;