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.1~29^2~47 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9973d76822ff8375e07694ea34c812fbbf8ebdbb;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 --- 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