[cairo] [patch] gl - fix mask surface deletion in cairo-gl-traps-compositor.c

Henry (Yu) Song - SISA hsong at sisa.samsung.com
Mon Jan 23 14:43:09 PST 2012



generated mask surface deletion must be delayed after compositing

diff --git a/src/cairo-gl-traps-compositor.c b/src/cairo-gl-traps-compositor.c
index 60a7331..ab6222f 100644
--- a/src/cairo-gl-traps-compositor.c
+++ b/src/cairo-gl-traps-compositor.c
@@ -324,6 +324,7 @@ traps_to_operand (void *_dst,
 				     &_cairo_unbounded_rectangle,
 				     &_cairo_unbounded_rectangle);
     _cairo_pattern_fini (&pattern.base);
+    operand->texture.owns_surface = cairo_surface_reference (mask);
     cairo_surface_destroy (mask);
 
     return status;


More information about the cairo mailing list