diff options
author | Martin Robinson <mrobinson@igalia.com> | 2013-01-15 17:12:23 -0800 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2013-01-15 17:14:01 -0800 |
commit | 1dfea39841fc6d545e45420b1999239f29556c05 (patch) | |
tree | d1e800f69fc06c0224749bcbbdbc7b84e27aa458 | |
parent | 769ea3b2c757adc9f8f348fdc93bb46f35c2f6b8 (diff) |
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.
-rw-r--r-- | src/cairo-gl-operand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-gl-operand.c b/src/cairo-gl-operand.c index 47d01046..19512668 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); |