From 07b7b7ee0a93de26f40b758518252a345cacb8da Mon Sep 17 00:00:00 2001 From: tomaz Date: Mon, 4 Jul 2005 08:12:58 +0000 Subject: [PATCH] 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 --- vid_wgl.c | 7 +++++++ 1 file changed, 7 insertions(+) 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; } -- 2.39.2