1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

UIViewComponentPeer: Fix stalled rendering when JUCE_COREGRAPHICS_RENDER_WITH_MULTIPLE_PAINT_CALLS is enabled

This commit is contained in:
reuk 2023-08-05 17:02:40 +01:00
parent eafcd86cfa
commit a4aa7392d8
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -2211,7 +2211,10 @@ void UIViewComponentPeer::displayLinkCallback()
for (const auto& r : deferredRepaints)
[view setNeedsDisplayInRect: convertToCGRect (r)];
deferredRepaints.clear();
#if JUCE_COREGRAPHICS_RENDER_WITH_MULTIPLE_PAINT_CALLS
if (metalRenderer == nullptr)
#endif
deferredRepaints.clear();
}
//==============================================================================