diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-06-13 21:33:09 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-06-13 21:36:20 +0100 |
commit | 2ab4245c866bcefb755a33f7eaa6ef1277f82df1 (patch) | |
tree | d77d5c037070fa0de96b19165912bf8741904a7a /test/cairo-test-trace.c | |
parent | e003d665fe45905606a792e4a783f65fc7e84550 (diff) |
[test] Need SOURCE when copying image data
As cairo-test-trace does not clear the image data before reuse, using
the default OVER operator will cause differing results for each process
when inadvertently alpha blending into the shared memory region. As we
essentially want to just copy the source pixels, be explicit and set the
SOURCE operator.
Diffstat (limited to 'test/cairo-test-trace.c')
-rw-r--r-- | test/cairo-test-trace.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/cairo-test-trace.c b/test/cairo-test-trace.c index d42ff3d4b..6d0bab850 100644 --- a/test/cairo-test-trace.c +++ b/test/cairo-test-trace.c @@ -282,6 +282,7 @@ push_surface (test_runner_thread_t *thread, cr = cairo_create (image); cairo_surface_destroy (image); + cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE); cairo_set_source_surface (cr, source, 0, 0); cairo_paint (cr); cairo_destroy (cr); |