summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-10-12 17:12:09 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-10-12 17:12:09 +0100
commit282cfff15663a0c1ee5f3c8e53745d2c7f47539e (patch)
tree7fa76987c661fe773703b0e6b4fdc40eebae6cd4
parentf84f6ecaa46d6e6ab1ebdf024fddc46bfacf2c0c (diff)
recording-surface: Initialize optimize-clears before use in snapshotting
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/cairo-recording-surface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cairo-recording-surface.c b/src/cairo-recording-surface.c
index 5f87e6ce..5316a104 100644
--- a/src/cairo-recording-surface.c
+++ b/src/cairo-recording-surface.c
@@ -1099,6 +1099,7 @@ _cairo_recording_surface_snapshot (void *abstract_other)
surface->indices = NULL;
surface->num_indices = 0;
+ surface->optimize_clears = TRUE;
_cairo_array_init (&surface->commands, sizeof (cairo_command_t *));
status = _cairo_recording_surface_replay (&other->base, &surface->base);