From 506f84ad02b8f6b59c03a8ea07c6d74bbd7b199b Mon Sep 17 00:00:00 2001 From: divverent Date: Mon, 29 Dec 2014 14:56:27 +0000 Subject: [PATCH] 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 --- vid_sdl.c | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.2