mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-06 10:50:17 +01:00
[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.
This commit is contained in:
parent
e003d665fe
commit
2ab4245c86
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue