If someone attempts to use lines, just log an error and render nothing (for now)

This commit is contained in:
Luke Benstead 2019-09-06 09:34:55 +01:00
parent 83bad86bca
commit 4170655a88

View File

@ -1024,6 +1024,11 @@ static void submitVertices(GLenum mode, GLsizei first, GLuint count, GLenum type
return; return;
} }
if(mode == GL_LINE_STRIP || mode == GL_LINES) {
fprintf(stderr, "Line drawing is currently unsupported\n");
return;
}
static SubmissionTarget* target = NULL; static SubmissionTarget* target = NULL;
static AlignedVector extras; static AlignedVector extras;