Cleanup
This commit is contained in:
parent
0df4b9f68d
commit
24c9a3b6c2
2 changed files with 3 additions and 2 deletions
2
dpf
2
dpf
|
@ -1 +1 @@
|
|||
Subproject commit e03017963d4e98cb898a6a1b435ad2ca5bccb537
|
||||
Subproject commit 56a65f56a369e5b031aac5bbfb5999e974e32fad
|
|
@ -283,7 +283,6 @@ void WindowSetPluginUI(Window* const window, DISTRHO_NAMESPACE::UI* const ui)
|
|||
nvgDeleteGL2(window->internal->r_fbVg);
|
||||
#endif
|
||||
|
||||
// window->internal->hiddenWindow.close();
|
||||
window->internal->ui = nullptr;
|
||||
window->internal->callback = nullptr;
|
||||
}
|
||||
|
@ -297,6 +296,8 @@ void WindowSetMods(Window* const window, const int mods)
|
|||
Window::~Window() {
|
||||
{
|
||||
DGL_NAMESPACE::Window::ScopedGraphicsContext sgc(internal->hiddenWindow);
|
||||
internal->hiddenWindow.close();
|
||||
internal->hiddenApp.idle();
|
||||
|
||||
// Fonts and Images in the cache must be deleted before the NanoVG context is deleted
|
||||
internal->fontCache.clear();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue