summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-27 15:17:31 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-27 15:17:31 +0300
commita1b59326cb4cd70bb2347e9776965a2a0d4895fd (patch)
tree5aa96742f74488679db41415777e2bd60d0d1e58 /src/client.cpp
parent85d30284660318cb1c41a366852e6b6d1d4c7273 (diff)
downloadplus-a1b59326cb4cd70bb2347e9776965a2a0d4895fd.tar.gz
plus-a1b59326cb4cd70bb2347e9776965a2a0d4895fd.tar.bz2
plus-a1b59326cb4cd70bb2347e9776965a2a0d4895fd.tar.xz
plus-a1b59326cb4cd70bb2347e9776965a2a0d4895fd.zip
Rename initGraphics into intoRenderers.
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();