From 4170655a88f58e4608dfef32a31306592b4c2766 Mon Sep 17 00:00:00 2001 From: Luke Benstead Date: Fri, 6 Sep 2019 09:34:55 +0100 Subject: [PATCH] If someone attempts to use lines, just log an error and render nothing (for now) --- GL/draw.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/GL/draw.c b/GL/draw.c index abd59d1..b7a76ec 100644 --- a/GL/draw.c +++ b/GL/draw.c @@ -1024,6 +1024,11 @@ static void submitVertices(GLenum mode, GLsizei first, GLuint count, GLenum type return; } + if(mode == GL_LINE_STRIP || mode == GL_LINES) { + fprintf(stderr, "Line drawing is currently unsupported\n"); + return; + } + static SubmissionTarget* target = NULL; static AlignedVector extras;