From 8bbf68c69c3810607b9571685db2104ca80fbc6d Mon Sep 17 00:00:00 2001 From: vrld Date: Wed, 28 Nov 2012 16:01:04 +0100 Subject: [PATCH] Match types in VertexIndex::getType() --- src/modules/graphics/opengl/VertexBuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/graphics/opengl/VertexBuffer.cpp b/src/modules/graphics/opengl/VertexBuffer.cpp index 2c3951061..ef3c671b6 100644 --- a/src/modules/graphics/opengl/VertexBuffer.cpp +++ b/src/modules/graphics/opengl/VertexBuffer.cpp @@ -276,7 +276,7 @@ size_t VertexIndex::getIndexCount(size_t elements) const GLenum VertexIndex::getType(size_t s) const { // Calculates if unsigned short is big enough to hold all the vertex indices. - static const GLint type_table[] = {GL_UNSIGNED_INT, GL_UNSIGNED_SHORT}; + static const GLenum type_table[] = {GL_UNSIGNED_INT, GL_UNSIGNED_SHORT}; return type_table[int(GLushort(-1) < s * 4)]; }