mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Match types in VertexIndex::getType()
This commit is contained in:
@@ -276,7 +276,7 @@ size_t VertexIndex::getIndexCount(size_t elements) const
|
|||||||
GLenum VertexIndex::getType(size_t s) const
|
GLenum VertexIndex::getType(size_t s) const
|
||||||
{
|
{
|
||||||
// Calculates if unsigned short is big enough to hold all the vertex indices.
|
// 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)];
|
return type_table[int(GLushort(-1) < s * 4)];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user