mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-31 21:50:14 +01:00
[cairo-test] Use CAIRO_OPERATOR_SOURCE when painting the group surface.
To correctly copy a surface onto the destination irrespective of its content requires the SOURCE operator. Forgetting to do so here causes uninitialized pixels to be mixed into the result and the failure of many tests for the similar surface. Oops...
This commit is contained in:
parent
ed3fccec01
commit
281b11aef1
1 changed files with 1 additions and 0 deletions
|
|
@ -384,6 +384,7 @@ cairo_test_for_target (cairo_test_t *test,
|
|||
|
||||
if (similar) {
|
||||
cairo_pop_group_to_source (cr);
|
||||
cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
|
||||
cairo_paint (cr);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue