1. rude
  2. love

Commits

vrld  committed b4be8b1

Match types in VertexIndex::getType()

  • Participants
  • Parent commits 3d960dc
  • Branches default

Comments (0)

Files changed (1)

File src/modules/graphics/opengl/VertexBuffer.cpp

View file
  • Ignore whitespace
 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)];
 }