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/manaplus/client.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/progs/manaplus/client.cpp') diff --git a/src/progs/manaplus/client.cpp b/src/progs/manaplus/client.cpp index a9735f43e..33d099678 100644 --- a/src/progs/manaplus/client.cpp +++ b/src/progs/manaplus/client.cpp @@ -592,10 +592,16 @@ 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); -- cgit v1.2.3-60-g2f50