projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f436154
)
mesa: fix version check in dinoshade.c
author
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 11 Nov 2008 21:33:11 +0000
(14:33 -0700)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 11 Nov 2008 21:35:39 +0000
(14:35 -0700)
progs/tests/dinoshade.c
patch
|
blob
|
history
diff --git
a/progs/tests/dinoshade.c
b/progs/tests/dinoshade.c
index 504b4af526a2f63899c54a339d83f0a012cc3e39..44115b9209d67631d2cd59f28f7a2ba15189981f 100644
(file)
--- a/
progs/tests/dinoshade.c
+++ b/
progs/tests/dinoshade.c
@@
-793,7
+793,7
@@
supportsOneDotOne(void)
version = (char *) glGetString(GL_VERSION);
if (sscanf(version, "%d.%d", &major, &minor) == 2)
- return major
>= 1 && minor >=
1;
+ return major
* 10 + minor >= 1
1;
return 0; /* OpenGL version string malformed! */
}