[cairo-commit] src/cairo-gl-gradient.c

Bryce Harrington bryce at kemper.freedesktop.org
Thu Nov 3 16:17:17 UTC 2016


 src/cairo-gl-gradient.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3f1a6f7225e31057a8af9313f051a1d311df0c69
Author: Bryce Harrington <bryce at osg.samsung.com>
Date:   Thu Nov 3 09:16:24 2016 -0700

    gl: Fix one more CAIRO_GL_FLAVOR_ES3 enum

diff --git a/src/cairo-gl-gradient.c b/src/cairo-gl-gradient.c
index ac32921..db82c23 100644
--- a/src/cairo-gl-gradient.c
+++ b/src/cairo-gl-gradient.c
@@ -282,7 +282,7 @@ _cairo_gl_gradient_create (cairo_gl_context_t           *ctx,
      * In OpenGL ES 2.0 no format conversion is allowed i.e. 'internalFormat'
      * must match 'format' in glTexImage2D.
      */
-    if (_cairo_gl_get_flavor () == CAIRO_GL_FLAVOR_ES)
+    if (_cairo_gl_get_flavor () == CAIRO_GL_FLAVOR_ES2)
 	internal_format = GL_BGRA;
     else
 	internal_format = GL_RGBA;


More information about the cairo-commit mailing list