]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
SDL2: Fix dprint spam in the console when toggling vid_vsync on/off
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 29 Dec 2014 14:56:27 +0000 (14:56 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 29 Dec 2014 14:56:27 +0000 (14:56 +0000)
Signed-off-by: terencehill <piuntn@gmail.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12113 d7cf8633-e32d-0410-b094-e92efae38249

vid_sdl.c

index 4637f47df58dfaacd65bb92231231fba81eed3b7..942cbdd24bea465bcf19374ce0f29681b1a7cfc6 100644 (file)
--- 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