summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 9906b8cf1..e6da61255 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -419,6 +419,10 @@ Game::Game() :
if (windowContainer)
windowContainer->add(windowMenu);
+#ifdef USE_OPENGL
+ MapReader::loadEmptyAtlas();
+#endif
+
initEngines();
chatWindow->postConnection();
@@ -450,6 +454,10 @@ Game::Game() :
Game::~Game()
{
+#ifdef USE_OPENGL
+ MapReader::unloadEmptyAtlas();
+#endif
+
settings.disableLoggingInGame = false;
touchManager.setInGame(false);
config.write();