1
0
Fork 0
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:
hogliux 2016-09-20 18:05:36 +01:00
parent 4f06ff9257
commit 679ef3f1dc

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;
}
}