Login  Register

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

Posted by stepasite on Sep 12, 2012; 10:47am
URL: https://forum.jogamp.org/GLException-Unable-to-create-temp-OpenGL-context-for-device-context-thrown-when-GLContext-makeCurrend-tp4026068p4026137.html

Hi Sven,

using an offscreen drawable did help. First the drawable is created, then context on it which is shared later on.

 I haven't found any remarks about offscreen drawable restrictions (only hardware opengl, etc.) so I think this solution will work.

Anyway, I have found a remark about context sharing limitations, but I guess that context sharing will work on most platforms without any problems (as it did in JOGL 1.1).

Thanks for your help,
Pavel