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

Chris Wilson ickle at kemper.freedesktop.org
Fri Nov 25 04:32:50 PST 2011


 src/cairo-gl-operand.c |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

New commits:
commit a6def3874ccb80b8e64ab1c750221f5525c09d0e
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Fri Nov 25 12:29:51 2011 +0000

    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 at chris-wilson.co.uk>

diff --git a/src/cairo-gl-operand.c b/src/cairo-gl-operand.c
index b43dd40..d494eb9 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);


More information about the cairo-commit mailing list