From 6e0b56edf89dcfbff0b007d27eb09dee2160ec28 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Wed, 23 Sep 2009 19:03:07 +0100 Subject: [PATCH] progs/perf: accept GL3.x also --- progs/perf/glmain.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } } -- 2.30.2