Making a snapshot of a GLCanvas

Hi there,

is there a possibility to make a snapshot of a GLCanvas in SWT? I know that the GLDisplay for AWT provides this feature. But maybe is there something similar for SWT? I already tried to make a snapshot of my composite with gc.copyArea(…). The snapshot is also made successfully, but the place of the OpenGL-Grafic in the image is always grey even if the grafic is displayed in my application view. I hope you can help me.

Regards,
Michael

PS: I hope this post doesn’t count as double posted. I know that there were 2 posts before. But they couldn’t help me.

This thread has code for a screenshot function that doesn’t really rely on JOGL, so you could port it to SWT with little trouble. It only saves to tga format, but is about as fast as a screenshot can be.