summaryrefslogtreecommitdiff
path: root/src/graphicsvertexes.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-12 03:55:01 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-16 22:47:14 +0300
commitd0e6d477d245610288ab622ecf47426a9dcbc400 (patch)
treee998d168d8eb4397602021b3b1411f80cc1466a9 /src/graphicsvertexes.cpp
parent68b1e0ec82321757f2a29792d38d7eabb7d2cf98 (diff)
downloadmanaplus-d0e6d477d245610288ab622ecf47426a9dcbc400.tar.gz
manaplus-d0e6d477d245610288ab622ecf47426a9dcbc400.tar.bz2
manaplus-d0e6d477d245610288ab622ecf47426a9dcbc400.tar.xz
manaplus-d0e6d477d245610288ab622ecf47426a9dcbc400.zip
Add tiles caching for software mode.
Diffstat (limited to 'src/graphicsvertexes.cpp')
-rw-r--r--src/graphicsvertexes.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/graphicsvertexes.cpp b/src/graphicsvertexes.cpp
index 68e60ea1d..d905b8b64 100644
--- a/src/graphicsvertexes.cpp
+++ b/src/graphicsvertexes.cpp
@@ -165,3 +165,13 @@ std::vector<DoubleRect*> *GraphicsVertexes::getRectsSDL()
{
return &sdl[mPtr].mList;
}
+
+ImageVertexes::~ImageVertexes()
+{
+ delete_all(sdl);
+ sdl.clear();
+#ifdef USE_OPENGL
+ delete_all(ogl);
+ ogl.clear();
+#endif
+}