Don't do anything if there are no vertices submitted

This commit is contained in:
Luke Benstead 2019-03-25 16:06:41 +00:00
parent 4355d0f224
commit f712f00602

View File

@ -1106,6 +1106,11 @@ static void submitVertices(GLenum mode, GLsizei first, GLuint count, GLenum type
return; return;
} }
/* No vertices? Do nothing */
if(!count) {
return;
}
static SubmissionTarget* target = NULL; static SubmissionTarget* target = NULL;
static AlignedVector extras; static AlignedVector extras;