From 14237f11439831377b59e8ea5717de5dd3e19e73 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 12 Feb 2013 10:11:12 +0000 Subject: spans: Mark the surface as cleared in preparing for recording surface playback Signed-off-by: Chris Wilson --- src/cairo-spans-compositor.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/cairo-spans-compositor.c b/src/cairo-spans-compositor.c index cb3e973d..6eb9b42a 100644 --- a/src/cairo-spans-compositor.c +++ b/src/cairo-spans-compositor.c @@ -589,11 +589,16 @@ composite_aligned_boxes (const cairo_spans_compositor_t *compositor, /* XXX could also do tiling repeat modes... */ /* first clear the area about to be overwritten */ - if (! dst->is_clear) + if (! dst->is_clear) { status = compositor->fill_boxes (dst, CAIRO_OPERATOR_CLEAR, CAIRO_COLOR_TRANSPARENT, boxes); + if (unlikely (status)) + return status; + + dst->is_clear = TRUE; + } recording_clip = _cairo_clip_from_boxes (boxes); status = _cairo_recording_surface_replay_with_clip (unwrap_source (source), -- cgit v1.2.3