Browse Source

Fixed a bug where VST plug-in editors using OpenGL would not work correctly in the JUCE plug-in host

tags/2021-05-28
hogliux 9 years ago
parent
commit
679ef3f1dc
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      modules/juce_gui_extra/native/juce_mac_NSViewComponent.mm

+ 5
- 0
modules/juce_gui_extra/native/juce_mac_NSViewComponent.mm View File

@@ -177,6 +177,7 @@ public:
NSView* const view;
typedef ReferenceCountedObjectPtr<NSViewAttachment> Ptr;
private:
Component& owner;
ComponentPeer* currentPeer;
@@ -199,10 +200,14 @@ void NSViewComponent::setView (void* const view)
{
if (view != getView())
{
NSViewAttachment::Ptr old = attachment;
attachment = nullptr;
if (view != nullptr)
attachment = attachViewToComponent (*this, view);
old = nullptr;
}
}


Loading…
Cancel
Save