Thank you very much for your answer! Good to hear indeed that other people are also using OpenCL.
Haha, my past always catches up to me ;p. I’ll do a short write-up when I figured out this problem and the right publishing method (I’ve been putting of a code blog for a while now, otherwise it might just be a forum post). Shoot me a PM if you have any questions before that.
Regarding the issue, the proposed solution looks interesting. I just think it is a bit complicated for what essentially means keeping the OpenGLContext and it’s related resources alive, while switching the Component to which it is rendering. I’ll have a better look at it tomorrow, but is there really no easier way to do this? Perhaps extending OpenGLContext::attachTo (Component& ), to something like OpenGLContext::attachTo (Component&, bool keepExistingContext), or am I overseeing something here?
Also, I’m guessing the solution does not work in case multiple windows are involved?
