summaryrefslogtreecommitdiff
path: root/src/graphicsvertexes.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-14 02:17:38 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-14 11:41:50 +0300
commiteecd33fff488d54d038d84d8676000fad826e940 (patch)
tree9eb6c12810579d52c8df16e43d294852ba5613bb /src/graphicsvertexes.cpp
parent4b8a6d93c5a785c673ec6c9f8a09880c48dee065 (diff)
downloadplus-eecd33fff488d54d038d84d8676000fad826e940.tar.gz
plus-eecd33fff488d54d038d84d8676000fad826e940.tar.bz2
plus-eecd33fff488d54d038d84d8676000fad826e940.tar.xz
plus-eecd33fff488d54d038d84d8676000fad826e940.zip
fix modernoepngl drawing.
Add simple draw test in most renders.
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();