mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 18:08:03 +02:00
[quartz] Unbreak mask fallback path
_cairo_quartz_surface_paint will never fail as it falls back to image when CoreGraphics can't handle the requested operation. This means that upon fallback the ClipImage set by the masking code gets ignored, thus the mask fallback path is broken. Using the _cg function ensures that masking is either completely done by CoreGraphics, or the fallback path passes the mask operation to image.
This commit is contained in:
parent
597dd24ddc
commit
b1829a47bf
1 changed files with 1 additions and 1 deletions
|
|
@ -2524,7 +2524,7 @@ _cairo_quartz_surface_mask_with_surface (cairo_quartz_surface_t *surface,
|
|||
|
||||
CGContextSetCTM (surface->cgContext, ctm);
|
||||
|
||||
status = _cairo_quartz_surface_paint (surface, op, source, clip);
|
||||
status = _cairo_quartz_surface_paint_cg (surface, op, source, clip);
|
||||
|
||||
CGContextRestoreGState (surface->cgContext);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue