summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-13 22:18:03 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-30 02:57:13 +0300
commit135c19b4337e1ab45cff40a306eadc52a061ddef (patch)
tree0a163ca1edd542aec5570b7e451034aafb4089dd /src/client.cpp
parent3a2bab265768c219b0c077eef10b69dfe8158131 (diff)
downloadmanaverse-135c19b4337e1ab45cff40a306eadc52a061ddef.tar.gz
manaverse-135c19b4337e1ab45cff40a306eadc52a061ddef.tar.bz2
manaverse-135c19b4337e1ab45cff40a306eadc52a061ddef.tar.xz
manaverse-135c19b4337e1ab45cff40a306eadc52a061ddef.zip
add atlas textures support.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/client.cpp b/src/client.cpp
index d034df76e..8a3f6f026 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -531,15 +531,10 @@ void Client::gameInit()
SDLImageHelper::SDLSetEnableAlphaCache(config.getBoolValue("alphaCache"));
ImageHelper::setEnableAlpha(config.getFloatValue("guialpha") != 1.0f);
#endif
-
graphicsManager.initGraphics(mOptions.noOpenGL);
-
runCounters = config.getBoolValue("packetcounters");
-
applyVSync();
-
graphicsManager.setVideoMode();
-
applyGrabMode();
applyGamma();
@@ -730,6 +725,9 @@ void Client::gameClear()
delete mainGraphics;
mainGraphics = nullptr;
+ if (imageHelper != sdlImageHelper)
+ delete sdlImageHelper;
+ sdlImageHelper = nullptr;
delete imageHelper;
imageHelper = nullptr;