[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:
Andrea Canciani 2010-02-03 11:19:26 +01:00
parent 597dd24ddc
commit b1829a47bf

View file

@ -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);