You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.1KB

  1. diff --git a/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm b/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm
  2. index 17361fc7e..1fed43c3d 100644
  3. --- a/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm
  4. +++ b/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm
  5. @@ -1089,6 +1089,7 @@ public:
  6. auto dispatchRectangles = [this] ()
  7. {
  8. + #if USE_COREGRAPHICS_RENDERING
  9. if (@available (macOS 10.14, *))
  10. {
  11. if (metalRenderer != nullptr)
  12. @@ -1101,6 +1102,7 @@ public:
  13. deferredRepaints);
  14. }
  15. }
  16. + #endif
  17. for (auto& i : deferredRepaints)
  18. [view setNeedsDisplayInRect: makeNSRect (i)];
  19. @@ -1900,7 +1902,9 @@ private:
  20. CVDisplayLinkRef displayLink = nullptr;
  21. dispatch_source_t displaySource = nullptr;
  22. + #if USE_COREGRAPHICS_RENDERING
  23. std::unique_ptr<CoreGraphicsMetalLayerRenderer> metalRenderer;
  24. + #endif
  25. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (NSViewComponentPeer)
  26. };