Cairo 1.15.4 and Mesa 13.1

Konstantin Ripak <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CAA8s6jce=KKzsEOcZsJ5bGQ=c8A0Bh7QNGk86Vp0swSZ0ew9ZA@mail.gmail.com>
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

-- 
cairo mailing list
[email protected]
https://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.