diff --git a/GL/draw.c b/GL/draw.c index 3170e01..1def91d 100644 --- a/GL/draw.c +++ b/GL/draw.c @@ -1106,6 +1106,11 @@ static void submitVertices(GLenum mode, GLsizei first, GLuint count, GLenum type return; } + /* No vertices? Do nothing */ + if(!count) { + return; + } + static SubmissionTarget* target = NULL; static AlignedVector extras;