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

"Henry (Yu) Song - SISA" <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <3955FA337689574EB32F94B12A7E6E9E0B49DF81@ex10mail>

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;
--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.