summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client.cpp3
1 files changed, 2 insertions, 1 deletions
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();