projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25e3a53
)
demos: check that GL version is 2.0 or higher
author
Brian Paul
<brianp@vmware.com>
Tue, 21 Apr 2009 13:27:12 +0000
(07:27 -0600)
committer
Brian Paul
<brianp@vmware.com>
Tue, 21 Apr 2009 13:27:27 +0000
(07:27 -0600)
progs/tests/shader_api.c
patch
|
blob
|
history
diff --git
a/progs/tests/shader_api.c
b/progs/tests/shader_api.c
index a513ca6ba1f5e7dd8917b7df2be16c3561261aa9..6453856345c70e1614569ac08f9bdd9f15205a31 100644
(file)
--- a/
progs/tests/shader_api.c
+++ b/
progs/tests/shader_api.c
@@
-321,10
+321,18
@@
static void run_test(const char *name, void (*callback)(void))
int main(int argc, char **argv)
{
+ const char *version;
+
glutInit(&argc, argv);
glutCreateWindow("Mesa bug demo");
glewInit();
+ version = (const char *) glGetString(GL_VERSION);
+ if (version[0] == '1') {
+ printf("Sorry, this test requires OpenGL 2.x GLSL support\n");
+ exit(0);
+ }
+
RUN_TEST(test_uniform_size_type);
RUN_TEST(test_attrib_size_type);
RUN_TEST(test_uniform_array_overflow);