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

Martin Robinson mrobinson at kemper.freedesktop.org
Tue Jan 15 17:17:30 PST 2013


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

New commits:
commit 1dfea39841fc6d545e45420b1999239f29556c05
Author: Martin Robinson <mrobinson at igalia.com>
Date:   Tue Jan 15 17:12:23 2013 -0800

    gl: Follow up fix for the previous commit
    
    Handle "fake" surfaces created by _cairo_gl_pattern_to_source which just
    embed a GL backend operand. These surfaces do not have a backend, so we
    should not fall back if a surface without a backend is not a texture
    surface.

diff --git a/src/cairo-gl-operand.c b/src/cairo-gl-operand.c
index 47d0104..1951266 100644
--- a/src/cairo-gl-operand.c
+++ b/src/cairo-gl-operand.c
@@ -269,7 +269,7 @@ _cairo_gl_surface_operand_init (cairo_gl_operand_t *operand,
     if (surface->base.device && surface->base.device != dst->base.device)
 	return CAIRO_INT_STATUS_UNSUPPORTED;
 
-    if (! _cairo_gl_surface_is_texture (surface))
+    if (surface->base.device && ! _cairo_gl_surface_is_texture (surface))
 	return CAIRO_INT_STATUS_UNSUPPORTED;
 
     status = _resolve_multisampling (surface);


More information about the cairo-commit mailing list