]> 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)
committerRudolf Polzer <divVerent@xonotic.org>
Mon, 29 Dec 2014 15:01:33 +0000 (16:01 +0100)
Signed-off-by: terencehill <piuntn@gmail.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12113 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=9973d76822ff8375e07694ea34c812fbbf8ebdbb

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