Browse Source

UIViewComponentPeer: Fix stalled rendering when JUCE_COREGRAPHICS_RENDER_WITH_MULTIPLE_PAINT_CALLS is enabled

v7.0.9
reuk 2 years ago
parent
commit
a4aa7392d8
No known key found for this signature in database GPG Key ID: FCB43929F012EE5C
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      modules/juce_gui_basics/native/juce_UIViewComponentPeer_ios.mm

+ 4
- 1
modules/juce_gui_basics/native/juce_UIViewComponentPeer_ios.mm 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();
}
//==============================================================================


Loading…
Cancel
Save