summaryrefslogtreecommitdiff
path: root/src/graphicsvertexes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphicsvertexes.cpp')
-rw-r--r--src/graphicsvertexes.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/graphicsvertexes.cpp b/src/graphicsvertexes.cpp
index c632952ee..102512274 100644
--- a/src/graphicsvertexes.cpp
+++ b/src/graphicsvertexes.cpp
@@ -20,7 +20,9 @@
#include "graphicsvertexes.h"
-#include "render/mgl.h"
+#include "logger.h"
+
+#include "render/graphics.h"
#include "utils/dtor.h"
@@ -97,14 +99,11 @@ void OpenGLGraphicsVertexes::clear()
}
mIntTexPool.clear();
- if (mglDeleteBuffers)
+ const int sz = mVbo.size();
+ if (sz > 0)
{
- const int sz = mVbo.size();
- if (sz > 0)
- {
- mglDeleteBuffers(sz, &mVbo[0]);
- mVbo.clear();
- }
+ mainGraphics->removeArray(sz, &mVbo[0]);
+ mVbo.clear();
}
mVp.clear();