1
0
Fork 0
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:
jules 2016-03-10 12:09:10 +00:00
parent e0f5218121
commit cd37ba3aa4

View file

@ -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();
}