gles: fix GLES version string matching
authorImre Deak <imre.deak@intel.com>
Mon, 9 Apr 2012 16:35:06 +0000 (19:35 +0300)
committerJosé 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

index cac9f4e..9c3d4d5 100644 (file)
@@ -54,7 +54,7 @@ Context::Context(void) {
             version[6] == ' ' &&
             version[7] == 'E' &&
             version[8] == 'S' &&
-            version[9] == ' ') {
+            (version[9] == ' ' || version[9] == '-')) {
             ES = true;
         }
     }