From b94b5e6a9d95aff96d10c24841ce6436faed54f5 Mon Sep 17 00:00:00 2001 From: rude Date: Sat, 6 Feb 2010 13:50:52 +0100 Subject: [PATCH] Fixed SpriteBatch using the wrong type for GL_ELEMENT_ARRAY_BUFFER. --- src/modules/graphics/opengl/SpriteBatch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/graphics/opengl/SpriteBatch.cpp b/src/modules/graphics/opengl/SpriteBatch.cpp index 4a571fe49..51457a568 100644 --- a/src/modules/graphics/opengl/SpriteBatch.cpp +++ b/src/modules/graphics/opengl/SpriteBatch.cpp @@ -81,7 +81,7 @@ namespace opengl glBindBuffer(GL_ARRAY_BUFFER, 0); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, vbo[1]); - glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(GLuint)*size*6, indices, GL_STATIC_DRAW); + glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(GLushort)*size*6, indices, GL_STATIC_DRAW); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); return true;