diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-01-19 02:18:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-01-19 02:18:23 +0300 |
commit | b7c9e3c0fd5b17c6964c81bb742c2cef1630d50e (patch) | |
tree | ee9006f53bf717d61fc96ba8238acb0662aeeacd /src/client.cpp | |
parent | ae70ae002eb3b28b84ed9027a6e1d20985f6a087 (diff) | |
download | plus-b7c9e3c0fd5b17c6964c81bb742c2cef1630d50e.tar.gz plus-b7c9e3c0fd5b17c6964c81bb742c2cef1630d50e.tar.bz2 plus-b7c9e3c0fd5b17c6964c81bb742c2cef1630d50e.tar.xz plus-b7c9e3c0fd5b17c6964c81bb742c2cef1630d50e.zip |
Fix vsync setting for SDL 2 builds.
Also fix vsync setting in mode on.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp index 40fa743d7..be9143062 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -350,6 +350,8 @@ void Client::gameInit() Dirs::initScreenshotDir(); + updateEnv(); + // Initialize SDL logger->log1("Initializing SDL..."); if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER) < 0) @@ -396,7 +398,6 @@ void Client::gameInit() // !defined(__native_client__) && !defined(UNITTESTS) #endif // defined(USE_OPENGL) - updateEnv(); initGraphics(); touchManager.init(); |