summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-11-25 12:29:51 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-11-25 12:29:51 +0000
commita6def3874ccb80b8e64ab1c750221f5525c09d0e (patch)
tree624d1314cbd86abf45ea40fe1771f08cbf7dc470
parentf308ba7a444741b2cb26f7b09f86553723d7a22f (diff)
gl: Even repeating subsurfaces need to be cloned
As we can't reuse the existing surface definition for a repetition of the subsurface. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/cairo-gl-operand.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cairo-gl-operand.c b/src/cairo-gl-operand.c
index b43dd40b..d494eb98 100644
--- a/src/cairo-gl-operand.c
+++ b/src/cairo-gl-operand.c
@@ -158,10 +158,9 @@ _cairo_gl_subsurface_operand_init (cairo_gl_operand_t *operand,
sub = (cairo_surface_subsurface_t *) src->surface;
- if (src->base.extend == CAIRO_EXTEND_NONE &&
- (sample->x < 0 || sample->y < 0 ||
- sample->x + sample->width > sub->extents.width ||
- sample->y + sample->height > sub->extents.height))
+ if (sample->x < 0 || sample->y < 0 ||
+ sample->x + sample->width > sub->extents.width ||
+ sample->y + sample->height > sub->extents.height)
{
return _cairo_gl_subsurface_clone_operand_init (operand, _src,
dst, sample, extents);