summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-09-23 19:03:07 +0100
committerKeith Whitwell <keithw@vmware.com>2009-09-24 16:43:15 +0100
commit6e0b56edf89dcfbff0b007d27eb09dee2160ec28 (patch)
treea4451e9f605bcf757e79585901d827f2af95f296 /progs
parent5f06064b616099712dbb2854351d0740c1dbfc60 (diff)
progs/perf: accept GL3.x also
Diffstat (limited to 'progs')
-rw-r--r--progs/perf/glmain.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/progs/perf/glmain.c b/progs/perf/glmain.c
index 22b404ede2..69cdbce319 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);
}
}