projects
/
tools
/
apitrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe806cb
)
gles: fix GLES version string matching
author
Imre Deak
<imre.deak@intel.com>
Mon, 9 Apr 2012 16:35:06 +0000
(19:35 +0300)
committer
José Fonseca
<jose.r.fonseca@gmail.com>
Thu, 12 Apr 2012 21:41:03 +0000
(22:41 +0100)
Some implementations return a version string starting with "OpenGL ES-",
fix the detection logic accordingly.
Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: José Fonseca <jose.r.fonseca@gmail.com>
glstate.cpp
patch
|
blob
|
history
diff --git
a/glstate.cpp
b/glstate.cpp
index
cac9f4e
..
9c3d4d5
100644
(file)
--- a/
glstate.cpp
+++ b/
glstate.cpp
@@
-54,7
+54,7
@@
Context::Context(void) {
version[6] == ' ' &&
version[7] == 'E' &&
version[8] == 'S' &&
-
version[9] == ' '
) {
+
(version[9] == ' ' || version[9] == '-')
) {
ES = true;
}
}