diff --git a/modules/juce_graphics/native/juce_mac_CoreGraphicsContext.mm b/modules/juce_graphics/native/juce_mac_CoreGraphicsContext.mm index a76f10d01b..7aa4b5aa34 100644 --- a/modules/juce_graphics/native/juce_mac_CoreGraphicsContext.mm +++ b/modules/juce_graphics/native/juce_mac_CoreGraphicsContext.mm @@ -274,7 +274,12 @@ void CoreGraphicsContext::excludeClipRectangle (const Rectangle& r) void CoreGraphicsContext::clipToPath (const Path& path, const AffineTransform& transform) { createPath (path, transform); - CGContextClip (context); + + if (path.isUsingNonZeroWinding()) + CGContextClip (context); + else + CGContextEOClip (context); + lastClipRectIsValid = false; }