mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-22 01:34:21 +00:00
Fix for openGL when a GL component is removed from its parent without detaching first.
This commit is contained in:
parent
e0f5218121
commit
cd37ba3aa4
1 changed files with 8 additions and 1 deletions
|
|
@ -150,7 +150,10 @@ public:
|
|||
return false;
|
||||
}
|
||||
|
||||
void releaseResources() override {}
|
||||
void releaseResources() override
|
||||
{
|
||||
stop();
|
||||
}
|
||||
|
||||
void triggerRepaint()
|
||||
{
|
||||
|
|
@ -237,6 +240,10 @@ public:
|
|||
if (isUpdating)
|
||||
{
|
||||
paintComponent();
|
||||
|
||||
if (! hasInitialised)
|
||||
return false;
|
||||
|
||||
mmLock = nullptr;
|
||||
lastMMLockReleaseTime = Time::getMillisecondCounter();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue