summaryrefslogtreecommitdiff
path: root/src/graphicsvertexes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphicsvertexes.cpp')
-rw-r--r--src/graphicsvertexes.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/graphicsvertexes.cpp b/src/graphicsvertexes.cpp
index 7b3e66f98..297762146 100644
--- a/src/graphicsvertexes.cpp
+++ b/src/graphicsvertexes.cpp
@@ -20,6 +20,8 @@
#include "graphicsvertexes.h"
+#include "render/mgl.h"
+
#include "utils/dtor.h"
#include "debug.h"
@@ -57,6 +59,7 @@ OpenGLGraphicsVertexes::OpenGLGraphicsVertexes() :
mShortVertPool.reserve(30);
mIntTexPool.reserve(30);
mVp.reserve(30);
+ mVbo.reserve(30);
}
OpenGLGraphicsVertexes::~OpenGLGraphicsVertexes()
@@ -94,6 +97,9 @@ void OpenGLGraphicsVertexes::clear()
}
mIntTexPool.clear();
+ mglDeleteBuffers(mVbo.size(), &mVbo[0]);
+ mVbo.clear();
+
mVp.clear();
if (ptr)
{