I writing here as I’m trying to figure out what’s the best way of handling this.
I have multiple OpenGL ‘sub-classes’ being called by my main class. (within proper OpenGL context)
When my parent is being destructed it calls
executeOnGLThread with blocking (so my destructor would wait).
It works well in Standalone, AU, VST, AAX.
But on VST3 I hit:
jassertfalse; // you called execute AFTER you detached your openglcontext
Sadly, it seems there’s no way knowing we’re going to be destroyed since,
Is being called from
removeFromDesktop() without ability to get notified ahead of being removed.
Am I missing something?