Login  Register

Re: How to make screenshot on SWT

Posted by gouessej on Jun 09, 2015; 9:51am
URL: https://forum.jogamp.org/How-to-make-screenshot-on-SWT-tp4033448p4034622.html

There is no version 2.3.2 yet. Please provide a test case to reproduce your bug. X11ExternalGLXContext$Drawable.getSurfaceWidth() shouldn't be called directly, this kind of drawable is used internally just to provide a display connection. Maybe the problem comes from your wrapper around GLContext. Rather use GLContext.getCurrentGL(). I already worked on a similar platform based on Eclipse RCP and SWT with JOGL, I had to port my own code from JOGL 1.1.1a to JOGL 2.0. I have to look a bit deeper at your code.
Julien Gouesse | Personal blog | Website