From ee41cd5a5a37e4d41df49cd92c61868fe2ce1a51 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 6 Jun 2016 22:35:47 +0300 Subject: Load special tilesets in ignored atlas. Special tilesets for now is collision and levels. After can be other. --- src/game.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/game.cpp') 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(); -- cgit v1.2.3-70-g09d2