From: divverent Date: Mon, 29 Dec 2014 14:56:27 +0000 (+0000) Subject: SDL2: Fix dprint spam in the console when toggling vid_vsync on/off X-Git-Tag: xonotic-v0.8.0~21 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=506f84ad02b8f6b59c03a8ea07c6d74bbd7b199b;p=xonotic%2Fdarkplaces.git SDL2: Fix dprint spam in the console when toggling vid_vsync on/off Signed-off-by: terencehill git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12113 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=9973d76822ff8375e07694ea34c812fbbf8ebdbb --- diff --git a/vid_sdl.c b/vid_sdl.c index 4637f47d..942cbdd2 100644 --- a/vid_sdl.c +++ b/vid_sdl.c @@ -2847,6 +2847,7 @@ void VID_Finish (void) vid_usevsync = (vid_vsync.integer && !cls.timedemo); if (vid_usingvsync != vid_usevsync) { + vid_usingvsync = vid_usevsync; if (SDL_GL_SetSwapInterval(vid_usevsync != 0) >= 0) Con_DPrintf("Vsync %s\n", vid_usevsync ? "activated" : "deactivated"); else