From f712f00602f8cc52b54ee4dba0d01859b1f67b79 Mon Sep 17 00:00:00 2001 From: Luke Benstead Date: Mon, 25 Mar 2019 16:06:41 +0000 Subject: [PATCH] Don't do anything if there are no vertices submitted --- GL/draw.c | 5 +++++ 1 file changed, 5 insertions(+) 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;