summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-07-17 19:27:22 +0300
committerAndrei Karas <akaras@inbox.ru>2017-07-17 20:30:23 +0300
commitd1b6556bd125f52744ff12b8dd2e644a1515205f (patch)
tree6beaf0721bb5293643f3f2fdc1d2ed4287b12b5f /src/client.cpp
parent4ecdb004e81a459ea63ebd7127e1c945df43f9ce (diff)
downloadplus-d1b6556bd125f52744ff12b8dd2e644a1515205f.tar.gz
plus-d1b6556bd125f52744ff12b8dd2e644a1515205f.tar.bz2
plus-d1b6556bd125f52744ff12b8dd2e644a1515205f.tar.xz
plus-d1b6556bd125f52744ff12b8dd2e644a1515205f.zip
Do actual SDL2 graphics cleanup before exit.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 1838398d4..5867c9474 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -730,6 +730,11 @@ void Client::gameClear()
logger->log("textures left: %d", textures_count);
#endif // DEBUG_OPENGL_LEAKS
+ Graphics::cleanUp();
+
+ if (logger != nullptr)
+ logger->log1("Quitting12");
+
delete2(chatLogger);
TranslationManager::close();
}