From eecd33fff488d54d038d84d8676000fad826e940 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 14 Jun 2014 02:17:38 +0300 Subject: fix modernoepngl drawing. Add simple draw test in most renders. --- src/graphicsvertexes.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'src/graphicsvertexes.cpp') 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(); -- cgit v1.2.3-60-g2f50