From 89824444060bbf1b57c2c0f1a832179bc9ee5897 Mon Sep 17 00:00:00 2001 From: Luke Benstead Date: Thu, 28 Mar 2019 13:07:53 +0000 Subject: [PATCH] Consistently allow > 16384 verts --- GL/draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GL/draw.c b/GL/draw.c index c008fb1..c1d821b 100644 --- a/GL/draw.c +++ b/GL/draw.c @@ -22,7 +22,7 @@ static GLubyte ACTIVE_CLIENT_TEXTURE = 0; #define ITERATE(count) \ - GLushort i = count; \ + GLuint i = count; \ while(i--) @@ -1238,7 +1238,7 @@ void APIENTRY glDrawArrays(GLenum mode, GLint first, GLsizei count) { return; } - submitVertices(mode, first, count, GL_UNSIGNED_SHORT, NULL); + submitVertices(mode, first, count, GL_UNSIGNED_INT, NULL); } void APIENTRY glEnableClientState(GLenum cap) {