projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b392ff
)
progs/demos: update GL version test to accept GL 3.x
author
Brian Paul
<brianp@vmware.com>
Wed, 17 Feb 2010 16:02:33 +0000
(09:02 -0700)
committer
Brian Paul
<brianp@vmware.com>
Wed, 17 Feb 2010 16:02:33 +0000
(09:02 -0700)
progs/demos/fslight.c
patch
|
blob
|
history
diff --git
a/progs/demos/fslight.c
b/progs/demos/fslight.c
index 395b7caa2c1355f29c74b5b3b09488eabf4663c0..91a5a801327d1ee254d49151e0b7780215227d28 100644
(file)
--- a/
progs/demos/fslight.c
+++ b/
progs/demos/fslight.c
@@
-467,8
+467,8
@@
Init(void)
const char *version;
version = (const char *) glGetString(GL_VERSION);
- if (version[0]
!= '2' || version[1] != '.
') {
- printf("This program requires OpenGL 2.x, found %s\n", version);
+ if (version[0]
== '1
') {
+ printf("This program requires OpenGL 2.x
or higher
, found %s\n", version);
exit(1);
}