diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-07-28 17:21:33 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-07-28 17:21:33 +0100 |
commit | ec74912eeeb08a32170bbbf3a83290f21171c730 (patch) | |
tree | 3055936f812363900d3d2697beb0f0c0ad12aeee /src/cairo-recording-surface.c | |
parent | 65e13cd20154f1f19b2d06ea7cf8779b0fb2158b (diff) |
record: Recording surfaces need an explicit clear
As a recording surface will be replayed onto a destination target, it is
unknown at the time of creation as to whether or not the target is
clear. So we need to make sure to record any initial clear in order
to replay that clear onto the destination. (If the destination is clear
anyway it will be suppressed.)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/cairo-recording-surface.c')
-rw-r--r-- | src/cairo-recording-surface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-recording-surface.c b/src/cairo-recording-surface.c index cb8d4faf..a0faf21b 100644 --- a/src/cairo-recording-surface.c +++ b/src/cairo-recording-surface.c @@ -407,7 +407,7 @@ cairo_recording_surface_create (cairo_content_t content, _cairo_array_init (&surface->commands, sizeof (cairo_command_t *)); surface->replay_start_idx = 0; - surface->base.is_clear = TRUE; + surface->base.is_clear = FALSE; surface->bbtree.left = surface->bbtree.right = NULL; surface->bbtree.chain = INVALID_CHAIN; |