summaryrefslogtreecommitdiff
path: root/src/graphicsvertexes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphicsvertexes.cpp')
-rw-r--r--src/graphicsvertexes.cpp21
1 files changed, 18 insertions, 3 deletions
diff --git a/src/graphicsvertexes.cpp b/src/graphicsvertexes.cpp
index 6beb41a88..7242269f2 100644
--- a/src/graphicsvertexes.cpp
+++ b/src/graphicsvertexes.cpp
@@ -54,12 +54,27 @@ OpenGLGraphicsVertexes::~OpenGLGraphicsVertexes()
void OpenGLGraphicsVertexes::clear()
{
- delete_all(mFloatTexPool);
+ for(std::vector<GLfloat*>::iterator it = mFloatTexPool.begin();
+ it != mFloatTexPool.end(); ++ it)
+ {
+ delete [] (*it);
+ }
mFloatTexPool.clear();
- delete_all(mIntVertPool);
+
+ for(std::vector<GLint*>::iterator it = mIntVertPool.begin();
+ it != mIntVertPool.end(); ++ it)
+ {
+ delete [] (*it);
+ }
mIntVertPool.clear();
- delete_all(mIntTexPool);
+
+ for(std::vector<GLint*>::iterator it = mIntTexPool.begin();
+ it != mIntTexPool.end(); ++ it)
+ {
+ delete [] (*it);
+ }
mIntTexPool.clear();
+
mVp.clear();
}