From de11a42a6fee8575cc035c84636277f387299f36 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 12 Sep 2017 05:05:03 +0300 Subject: Fix apply vsync with SDL2 by SDL2 function. --- src/progs/dyecmd/client.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/progs/dyecmd/client.cpp') diff --git a/src/progs/dyecmd/client.cpp b/src/progs/dyecmd/client.cpp index 41bb7f3cb..eb40fd9c5 100644 --- a/src/progs/dyecmd/client.cpp +++ b/src/progs/dyecmd/client.cpp @@ -393,11 +393,18 @@ void Client::initSoundManager() void Client::initGraphics() { +#ifndef USE_SDL2 WindowManager::applyVSync(); +#endif // USE_SDL2 + runCounters = config.getBoolValue("packetcounters"); graphicsManager.initGraphics(); +#ifdef USE_SDL2 + WindowManager::applyVSync(); +#endif // USE_SDL2 + imageHelper->postInit(); setConfigDefaults2(config); WindowManager::applyGrabMode(); -- cgit v1.2.3-70-g09d2