diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-14 02:17:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-14 11:41:50 +0300 |
commit | eecd33fff488d54d038d84d8676000fad826e940 (patch) | |
tree | 9eb6c12810579d52c8df16e43d294852ba5613bb /src/graphicsvertexes.cpp | |
parent | 4b8a6d93c5a785c673ec6c9f8a09880c48dee065 (diff) | |
download | ManaVerse-eecd33fff488d54d038d84d8676000fad826e940.tar.gz ManaVerse-eecd33fff488d54d038d84d8676000fad826e940.tar.bz2 ManaVerse-eecd33fff488d54d038d84d8676000fad826e940.tar.xz ManaVerse-eecd33fff488d54d038d84d8676000fad826e940.zip |
fix modernoepngl drawing.
Add simple draw test in most renders.
Diffstat (limited to 'src/graphicsvertexes.cpp')
-rw-r--r-- | src/graphicsvertexes.cpp | 15 |
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(); |