diff options
Diffstat (limited to 'progs')
-rw-r--r-- | progs/perf/glmain.c | 5 |
1 files 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); } } |