We’re currently porting our application from Obj-C to C++.
We have set a JUCE OpenGLContext as the main window’s render context and as we need to do some more OpenGL drawing in a subcomponent, we are forwarding the calls to that component from the main window’s renderOpenGL calls as suggested by Fabian in this thread:
Our main rendering pipeline uses one main shared context which holds all the texture and frame buffer names, so we’d need to share this with the main window’s context.
However, if I set a shared context to the main window’s rendering context before attaching it to the component, the UI is not redrawn anymore as it should. This can only be triggered by resizing the window for example. Is there any reason for that or is there another way to handle this problem?
Thanks a lot in advance!