jogl & swt

I’ve got major problems with swt & jogl. All i can do now is render glstuff to my glCanvas, but whenever i try to do anything more
‘advanced’ like reading in the pixels. With glReadPixels() i get an exception. :
Failed to execute runnable (javax.media.opengl.GLException: Method “wglGetExtensionsStringEXT” not available)

what should i do, embed an AWT frame in a swt composite, since that worked correctly before.

cheers,

Paul

Seems like you’re calling it from the wrong thread.

You can check that easily by printing the name of the thread before calling that method.

The current build of JOGL supporting the nearly-complete JSR-231 APIs is known to work with the SWT. Have you looked at the SWT OpenGL snippets for JOGL and the use of the GLDrawableFactory.createExternalGLContext() API?

Which version of the JOGL bindings to SWT are you using? There could be several issues floating around that may not even be SWT related, such as which version of the OpenGL drivers are running on your machine.