From: Imre Deak Date: Mon, 9 Apr 2012 16:35:06 +0000 (+0300) Subject: gles: fix GLES version string matching X-Git-Tag: 2.0_alpha^2~152 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad60fd108d331796173ad54356855d9a2d0d87ba;p=tools%2Fapitrace.git gles: fix GLES version string matching Some implementations return a version string starting with "OpenGL ES-", fix the detection logic accordingly. Signed-off-by: Imre Deak Signed-off-by: José Fonseca --- 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; } }