]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Fixed it so vertical syns is applied correctly at init.
authortomaz <tomaz@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 4 Jul 2005 08:12:58 +0000 (08:12 +0000)
committertomaz <tomaz@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 4 Jul 2005 08:12:58 +0000 (08:12 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5485 d7cf8633-e32d-0410-b094-e92efae38249

vid_wgl.c

index 0adee1c6c485435294a29aa1f71e51fd0923d8de..f35eec97ab68d78f382429a13920f0863f066e27 100644 (file)
--- a/vid_wgl.c
+++ b/vid_wgl.c
@@ -951,6 +951,13 @@ int VID_InitMode (int fullscreen, int width, int height, int bpp)
        IN_StartupMouse ();
        IN_StartupJoystick ();
 
+       if (gl_videosyncavailable)
+       {
+               vid_usevsync = vid_vsync.integer;
+               vid_usingvsync = vid_vsync.integer;
+               qwglSwapIntervalEXT (vid_usevsync);
+       }
+
        return true;
 }