From 1af18610baaefd2031259fc7aae79b341c57fb91 Mon Sep 17 00:00:00 2001 From: Bryce Harrington Date: Mon, 11 Sep 2017 19:49:14 -0700 Subject: [PATCH] glesv2: Fix regression in gles version detection Revert the _cairo_gl_get_flavor() portion of the change from commit eb523200. This caused GLES to be enabled only if the hardware reported version 2 exactly; if the hardware supported version 2 and 3 then no ES support would be enabled. --- src/cairo-gl-info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cairo-gl-info.c b/src/cairo-gl-info.c index 39541aa6f..a4b42715d 100644 --- a/src/cairo-gl-info.c +++ b/src/cairo-gl-info.c @@ -65,7 +65,7 @@ _cairo_gl_get_flavor (void) if (version == NULL) flavor = CAIRO_GL_FLAVOR_NONE; - else if (strstr (version, "OpenGL ES 2") != NULL) + else if (strstr (version, "OpenGL ES") != NULL) flavor = CAIRO_GL_FLAVOR_ES2; else flavor = CAIRO_GL_FLAVOR_DESKTOP;