summaryrefslogtreecommitdiff
path: root/src/dyetool/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/dyetool/client.cpp
parent4ecdb004e81a459ea63ebd7127e1c945df43f9ce (diff)
downloadmanaverse-d1b6556bd125f52744ff12b8dd2e644a1515205f.tar.gz
manaverse-d1b6556bd125f52744ff12b8dd2e644a1515205f.tar.bz2
manaverse-d1b6556bd125f52744ff12b8dd2e644a1515205f.tar.xz
manaverse-d1b6556bd125f52744ff12b8dd2e644a1515205f.zip
Do actual SDL2 graphics cleanup before exit.
Diffstat (limited to 'src/dyetool/client.cpp')
-rw-r--r--src/dyetool/client.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dyetool/client.cpp b/src/dyetool/client.cpp
index 0a03c4c68..8ed409a0a 100644
--- a/src/dyetool/client.cpp
+++ b/src/dyetool/client.cpp
@@ -492,6 +492,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();
VirtFs::deinit();