[cairo] Cairo 1.15.4 and Mesa 13.1

Konstantin Ripak konstantin.ripak at cogentembedded.com
Thu Jan 5 08:35:47 UTC 2017


Hi,
I've just discovered that latest changes to cairo regarding CAIRO_GL_FLAVOR_ES
break copatibility of cairo gl backend with OpenGL ES 3.
https://lists.freedesktop.org/archives/cairo-commit/2016-October/012977.html

The issue is in this change:

diff --git a/src/cairo-gl-info.c b/src/cairo-gl-info.c
index acefbb9..39541aa 100644
--- a/src/cairo-gl-info.c
+++ b/src/cairo-gl-info.c
@@ -65,8 +65,8 @@ _cairo_gl_get_flavor (void)

     if (version == NULL)
 	flavor = CAIRO_GL_FLAVOR_NONE;
-    else if (strstr (version, "OpenGL ES") != NULL)
-	flavor = CAIRO_GL_FLAVOR_ES;
+    else if (strstr (version, "OpenGL ES 2") != NULL)
+	flavor = CAIRO_GL_FLAVOR_ES2;
     else
 	flavor = CAIRO_GL_FLAVOR_DESKTOP;

If version contains "OpenGL ES 3" this doesn't work at all.

As far as I know OpenGL ES 3 is backward compatible with OpenGL ES 2, so
why not we fix this?

Best Regards,
Konstantin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo/attachments/20170105/e2f5d8e2/attachment.html>


More information about the cairo mailing list