summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/client.cpp b/src/client.cpp
index b42dd51c6..2af0eb84d 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -365,9 +365,15 @@ void Client::gameInit()
extractDataDir();
mountDataDir();
setIcon();
+ checkConfigVersion();
+ logVars();
+ Cpu::detect();
initGraphics();
#else
setIcon();
+ checkConfigVersion();
+ logVars();
+ Cpu::detect();
initGraphics();
extractDataDir();
mountDataDir();
@@ -537,8 +543,6 @@ void Client::createWindows()
void Client::initGraphics()
{
- checkConfigVersion();
-
#if defined(USE_OPENGL)
#if !defined(ANDROID) && !defined(__APPLE__) && !defined(__native_client__)
if (!mOptions.safeMode && mOptions.test.empty()
@@ -573,9 +577,7 @@ void Client::initGraphics()
config.getBoolValue("alphaCache"));
ImageHelper::setEnableAlpha(config.getFloatValue("guialpha") != 1.0F);
#endif
- logVars();
- Cpu::detect();
- graphicsManager.initGraphics(mOptions.noOpenGL);
+ graphicsManager.createRenderers(mOptions.noOpenGL);
graphicsManager.detectPixelSize();
runCounters = config.getBoolValue("packetcounters");
applyVSync();