[PATCH 3/9] gles: fix GLES version string matching
Imre Deak
imre.deak at intel.com
Wed Apr 11 08:19:33 PDT 2012
Some implementations return a version string starting with "OpenGL ES-",
fix the detection logic accordingly.
Signed-off-by: Imre Deak <imre.deak at intel.com>
---
glstate.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/glstate.cpp b/glstate.cpp
index cac9f4e..9c3d4d5 100644
--- 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;
}
}
--
1.7.5.4
More information about the apitrace
mailing list