Login  Register

Regression in AWT GLCanvas?

Posted by gouessej on Oct 04, 2012; 12:22am
URL: https://forum.jogamp.org/Regression-in-AWT-GLCanvas-tp4026344.html

Hi

@Sven you provided me a temporary fix for Ardor3D before you released the RC8, it was necessary when there were several GLCanvas instances in the same container under GNU Linux. I removed this fix when I updated JOGL. It was working fine until... I don't know when. Now I'm forced to use this always even under Windows and with a single GLCanvas. If I don't do that, the context is not created. The fix is here:
//FIXME temporary fix provided by Sven Göthel, useless with latest fixes in JOGL 2.0 RC8
    try {
            EventQueue.invokeAndWait(new Runnable() {
                public void run() {
                                        setVisible(true);
                                        display(); // force creation via validateGLDrawable()
                                }
                        });
        } catch (InvocationTargetException e) {
            throw new RuntimeException(e.getTargetException());
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }

JOGL 2.0 build 754 works fine. I use the aggregated build of the 23rd August.
Julien Gouesse | Personal blog | Website