Login  Register

Re: GLException "Unable to create temp OpenGL context for device context" thrown when GLContext.makeCurrent() called

Posted by stepasite on Sep 11, 2012; 7:02pm
URL: https://forum.jogamp.org/GLException-Unable-to-create-temp-OpenGL-context-for-device-context-thrown-when-GLContext-makeCurrend-tp4026068p4026121.html

Hi Sven,

I know about the constructor and that was the way how I shared GLContext instances till migrating  to JOGL2.

But with JOGL2 this sharing does not work reliably for me. When all the canvases are docked in my app at the same time (removeNotify() and then addNotify() called for all the canvases), the context is sometimes lost.

Maybe I do someting wrong. I will recheck my app logic and life-cycle of GLContext resources. I hopefully find what changes cause problems in my code.

When asking my previous question, I was looking for a way of sharing GLContext as it is done in GLWindow -- sharing of context can be done later (e.g. in init()), not when constructing an object.

Thanks for your help,
Pavel