From: tomaz Date: Mon, 4 Jul 2005 08:12:58 +0000 (+0000) Subject: Fixed it so vertical syns is applied correctly at init. X-Git-Tag: xonotic-v0.1.0preview~4701 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=07b7b7ee0a93de26f40b758518252a345cacb8da;p=xonotic%2Fdarkplaces.git Fixed it so vertical syns is applied correctly at init. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5485 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/vid_wgl.c b/vid_wgl.c index 0adee1c6..f35eec97 100644 --- 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; }