Multiple Dummy AutoDrawable with Shared Context

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Multiple Dummy AutoDrawable with Shared Context

robot
Hi,

Is it possible to create multiple Dummy AutoDrawables with a shared context?

Background: I have a heavily multithreaded system and need a pool of shared contexts for background OpenGL resource management (Textures, Buffers, etc).

Currently, I'm creating a single dummy auto drawable, but don't know how to create additional ones from there.

My workaround is to create a GLWindow which shares the dummy drawables context (as in the docs), but I can only make this work if I briefly set the window to visible and then hide it again. Would like to avoid this.

Thanks /Stefan