Login  Register

Re: NPE when getting GLDrawableFactory

Posted by Wade Walker on Jan 18, 2011; 8:52pm
URL: https://forum.jogamp.org/NPE-when-getting-GLDrawableFactory-tp2276026p2282714.html

When I run your code on CentOS 64-bit, I get a different exception that you do:

Info: XInitThreads() called for concurrent Thread support
Exception in thread "main" javax.media.opengl.GLException: No AWTGraphicsConfiguration: AWT-GLCanvas[ null, null-drawable]
        at javax.media.opengl.awt.GLCanvas.getChosenGLCapabilities(GLCanvas.java:693)
        at name.wadewalker.onetriangle.CapsCheck.main(CapsCheck.java:26)

This is because the awtConfig member in the GLCanvas isn't set up until you add it to a frame and set it visible.