Login  Register

GLException with SWT Demo

Posted by Martin on Nov 12, 2010; 12:02am
URL: https://forum.jogamp.org/GLException-with-SWT-Demo-tp1886152.html

Hi!
When trying to run the SWT Demo (snippet209), I got:

Exception in thread "main" javax.media.opengl.GLException: Error: attempted to make an external GLContext without a valid pixelformat
        at com.jogamp.opengl.impl.windows.wgl.WindowsExternalWGLContext.create(WindowsExternalWGLContext.java:74)
        at com.jogamp.opengl.impl.windows.wgl.WindowsWGLDrawableFactory.createExternalGLContext(WindowsWGLDrawableFactory.java:197)
        at demos.swt.Snippet209.main(Snippet209.java:83)

What should be a valid pixel format? How should I set it?
Regards,
Martin
ps: I am running on WinXP with a NVidia GeForce 7300.