From: Keith Whitwell Date: Wed, 23 Sep 2009 18:03:07 +0000 (+0100) Subject: progs/perf: accept GL3.x also X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6e0b56edf89dcfbff0b007d27eb09dee2160ec28;p=mesa.git progs/perf: accept GL3.x also --- diff --git a/progs/perf/glmain.c b/progs/perf/glmain.c index 22b404ede2d..69cdbce319e 100644 --- a/progs/perf/glmain.c +++ b/progs/perf/glmain.c @@ -121,8 +121,9 @@ PerfShaderProgram(const char *vertShader, const char *fragShader) { const char *version = (const char *) glGetString(GL_VERSION); - if (version[0] != '2' || version[1] != '.') { - fprintf(stderr, "Error: GL version 2.x required\n"); + if ((version[0] != '2' && + version[0] != '3') || version[1] != '.') { + fprintf(stderr, "Error: GL version 2.x or better required\n"); exit(1); } }