Login  Register

Re: Problem Moving from 1.1.1a -> 2.0

Posted by sorghumking on Mar 16, 2012; 6:59am
URL: https://forum.jogamp.org/SOLVED-Problem-Moving-from-1-1-1a-2-0-tp3826486p3831107.html

Okay, it's definitely a context problem.  We attempt to share contexts as follows:

1. Create a dummy GLCanvas with the default constructor
2. Grab that canvas's GLContext with getContext()
3. Pass that context when instantiating the GLCanvases we actually render to

I discovered this thread and tried his workaround - after creating the dummy canvas, add it to a Frame and make the frame visible - it works!!!  I'm delighted, but why do I need the workaround?  That thread is from late 2010, and his last post suggests the issue was resolved in a newer JOGL build ("cool, it works fine now with the jogl-2.0-b3-20101124-windows-i586 build").  Is my approach to sharing the context the problem?  How should I be doing it?