From ad60fd108d331796173ad54356855d9a2d0d87ba Mon Sep 17 00:00:00 2001 From: Imre Deak Date: Mon, 9 Apr 2012 19:35:06 +0300 Subject: [PATCH] gles: fix GLES version string matching MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- glstate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.43.0