mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-21 01:24:21 +00:00
Fixed a bug where VST plug-in editors using OpenGL would not work correctly in the JUCE plug-in host
This commit is contained in:
parent
4f06ff9257
commit
679ef3f1dc
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue