From c9fbec38d8a9da8ae234005849e31a35e23a8559 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 26 Apr 2012 14:53:54 +0300 Subject: Fix vsync setting on supported software/hardware. --- src/client.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index b51d8cdac..c871b2372 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -548,6 +548,8 @@ void Client::gameInit() const bool enableResize = config.getBoolValue("enableresize"); const bool noFrame = config.getBoolValue("noframe"); + applyVSync(); + // Try to set the desired video mode if (!mainGraphics->setVideoMode(width, height, bpp, fullscreen, hwaccel, enableResize, noFrame)) @@ -579,7 +581,6 @@ void Client::gameInit() applyGrabMode(); applyGamma(); - applyVSync(); // Initialize for drawing mainGraphics->_beginDraw(); -- cgit v1.2.3-60-g2f50