OpenGL context persistence and sharing

I have a GPUContext class that inherits from juce::OpenGLContext. I try to make 4 (four potential graphics cards), and each one starts up and tries to create a context on it’s designated GPU. There’s platform specific code, that can be lifted mainly from the Juce codebase, to create each context.

Since it’s an OpenGLContext subclass, just keep it around - say in your application object - and pass a pointer to it to each new OpenGLComponent.

Bruce