From d83cfbeab41795b80444b960b0b604f430d56337 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 14 Jun 2014 13:12:37 +0300 Subject: Switch modernopengl from float into int buffers. --- src/render/modernopenglgraphics.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/render/modernopenglgraphics.h') diff --git a/src/render/modernopenglgraphics.h b/src/render/modernopenglgraphics.h index 4ee663544..b5f7fdd3a 100644 --- a/src/render/modernopenglgraphics.h +++ b/src/render/modernopenglgraphics.h @@ -96,7 +96,7 @@ class ModernOpenGLGraphics final : public Graphics inline void drawTriangleArray(const int size); - inline void drawTriangleArray(const GLfloat *const array, + inline void drawTriangleArray(const GLint *const array, const int size); inline void drawLineArrays(const int size); @@ -107,8 +107,8 @@ class ModernOpenGLGraphics final : public Graphics inline void bindAttributes(); - GLfloat *mFloatArray; - GLfloat *mFloatArrayCached; + GLint *mIntArray; + GLint *mIntArrayCached; ShaderProgram *mProgram; float mAlphaCached; int mVpCached; -- cgit v1.2.3-60-g2f50