summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-07 23:21:18 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-07 23:21:18 +0300
commite8ff5419a08bf5eae639bbf6bdebe9692a0b3d53 (patch)
tree976e8b87c81a6929e5dfe2a8e87cc4b04c590022 /src/client.cpp
parent5f478df06f4c04bdef94874860a1b40e8d0d62fe (diff)
downloadmv-e8ff5419a08bf5eae639bbf6bdebe9692a0b3d53.tar.gz
mv-e8ff5419a08bf5eae639bbf6bdebe9692a0b3d53.tar.bz2
mv-e8ff5419a08bf5eae639bbf6bdebe9692a0b3d53.tar.xz
mv-e8ff5419a08bf5eae639bbf6bdebe9692a0b3d53.zip
Fallback to safe OpenGL mode if OpenGL version is lower than 2.0.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 12d0b82a3..8ddb5dcdd 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -627,12 +627,7 @@ void Client::gameClear()
if (logger)
logger->log1("Quitting3");
- delete2(mainGraphics);
-
- if (imageHelper != surfaceImageHelper)
- delete surfaceImageHelper;
- surfaceImageHelper = nullptr;
- delete2(imageHelper);
+ graphicsManager.deleteRenderers();
if (logger)
logger->log1("Quitting4");