diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-07 22:33:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-07 22:33:10 +0300 |
commit | 5f478df06f4c04bdef94874860a1b40e8d0d62fe (patch) | |
tree | ab7c0d03637d8d94e13b6e35466289a1445495e5 /src/client.cpp | |
parent | 6adc2a5654e55f4a0e817cd5731753cdc3bc5ff4 (diff) | |
download | manaverse-5f478df06f4c04bdef94874860a1b40e8d0d62fe.tar.gz manaverse-5f478df06f4c04bdef94874860a1b40e8d0d62fe.tar.bz2 manaverse-5f478df06f4c04bdef94874860a1b40e8d0d62fe.tar.xz manaverse-5f478df06f4c04bdef94874860a1b40e8d0d62fe.zip |
Improve a bit video mode initialisation code.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client.cpp b/src/client.cpp index 8adf4f5f1..12d0b82a3 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -508,11 +508,11 @@ void Client::updateEnv() void Client::initGraphics() { - graphicsManager.initGraphics(settings.options.noOpenGL); - - runCounters = config.getBoolValue("packetcounters"); WindowManager::applyVSync(); - graphicsManager.setVideoMode(); + runCounters = config.getBoolValue("packetcounters"); + + graphicsManager.initGraphics(); + imageHelper->postInit(); getConfigDefaults2(config.getDefaultValues()); WindowManager::applyGrabMode(); |