Login  Register

Multiple Dummy AutoDrawable with Shared Context

Posted by robot on Feb 06, 2015; 6:07pm
URL: https://forum.jogamp.org/Multiple-Dummy-AutoDrawable-with-Shared-Context-tp4034010.html

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