Login  Register

Re: Unable to create temp OpenGL context for device context

Posted by Sven Gothel on Nov 11, 2011; 9:05am
URL: https://forum.jogamp.org/Unable-to-create-temp-OpenGL-context-for-device-context-tp3089571p3499168.html

On Friday, November 11, 2011 09:38:29 AM jouvieje [via jogamp] wrote:
>
> When I try to create a shared context in a NewtCanvasAWT I have a
> wglSharedLists failed exception (during makeCurrent of GLWindow.setSize)
> which breaks everything. Not sure where the problem come from, and not have
> time to look at that yet.

We have 4 unit test for shared context and all work fine:

http://jogamp.org/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/junit/jogl/acore/TestSharedContextListAWT.java;hb=HEAD
http://jogamp.org/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/junit/jogl/acore/TestSharedContextListNEWT.java;hb=HEAD
http://jogamp.org/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/junit/jogl/acore/TestSharedContextVBOES1NEWT.java;hb=HEAD
http://jogamp.org/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/junit/jogl/acore/TestSharedContextVBOES2NEWT.java;hb=HEAD

Maybe you can copy one of those and change it to reproduce the erroneous behavior,
so we can discuss it.

>
> I can reproduce easily this exception modifying the RedSquare demo using
> context sharing.

~Sven