Currently I’m using JUCE’s OpenGLContext and OpenGLRenderer to render some stuff. As I’ve understood, you’re supposed to do any OpenGL initialisation during OpenGLRenderer::newOpenGLContextCreated() as there is a context available then.
Is it also possible to do the initialisation during startup already somewhere (so before any GUI-items are shown)? This would save me a few ugly callbacks, but more importantly, would allow me to use a valid OpenGLContext during unit testing.
Thanks in advance for your help!