mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 15:48:00 +02:00
clip: Fill instead of creating intermediate surfaces.
This commit is contained in:
parent
fb53d05a69
commit
a8b611ea8e
1 changed files with 3 additions and 1 deletions
|
|
@ -1036,7 +1036,9 @@ _cairo_clip_path_get_surface (cairo_clip_path_t *clip_path,
|
|||
{
|
||||
/* a simple box only affects the extents */
|
||||
}
|
||||
else if (prev->path.is_rectilinear)
|
||||
else if (prev->path.is_rectilinear ||
|
||||
prev->surface == NULL ||
|
||||
prev->surface->backend != target->backend)
|
||||
{
|
||||
if (need_translate) {
|
||||
_cairo_path_fixed_translate (&prev->path,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue