diff options
author | Keith Whitwell <[email protected]> | 2009-09-23 19:03:07 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2009-09-24 16:43:15 +0100 |
commit | 6e0b56edf89dcfbff0b007d27eb09dee2160ec28 (patch) | |
tree | a4451e9f605bcf757e79585901d827f2af95f296 /progs/perf | |
parent | 5f06064b616099712dbb2854351d0740c1dbfc60 (diff) |
progs/perf: accept GL3.x also
Diffstat (limited to 'progs/perf')
-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); } } |