summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-07 22:33:10 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-07 22:33:10 +0300
commit5f478df06f4c04bdef94874860a1b40e8d0d62fe (patch)
treeab7c0d03637d8d94e13b6e35466289a1445495e5 /src/client.cpp
parent6adc2a5654e55f4a0e817cd5731753cdc3bc5ff4 (diff)
downloadplus-5f478df06f4c04bdef94874860a1b40e8d0d62fe.tar.gz
plus-5f478df06f4c04bdef94874860a1b40e8d0d62fe.tar.bz2
plus-5f478df06f4c04bdef94874860a1b40e8d0d62fe.tar.xz
plus-5f478df06f4c04bdef94874860a1b40e8d0d62fe.zip
Improve a bit video mode initialisation code.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp8
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();