projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f06064
)
progs/perf: accept GL3.x also
author
Keith Whitwell
<keithw@vmware.com>
Wed, 23 Sep 2009 18:03:07 +0000
(19:03 +0100)
committer
Keith Whitwell
<keithw@vmware.com>
Thu, 24 Sep 2009 15:43:15 +0000
(16:43 +0100)
progs/perf/glmain.c
patch
|
blob
|
history
diff --git
a/progs/perf/glmain.c
b/progs/perf/glmain.c
index 22b404ede2d6c5fe7e95623f50dcd27e10027ca3..69cdbce319e07f0940c610782615b0ad0cb43af0 100644
(file)
--- 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);
}
}