hello, i am trying to use the Screenshot class to make a PNG from something i have rendered to a PBuffer, but all i see on the resulting PNG is white (the clearcolor).
now i dont know if the Screenshot class doesnt support PBuffers or if i have setup my PBuffer incorrectly.
this is what i do:
public void makeCharacterScreenshot(GLAutoDrawable drawable) {
if (!GLDrawableFactory.getFactory().canCreateGLPbuffer()) return;
GLPbuffer pbuffer = GLDrawableFactory.getFactory().createGLPbuffer(new GLCapabilities(), new DefaultGLCapabilitiesChooser(), 1024, 1024, canvas.getContext());
pbuffer.getContext().makeCurrent();
GL gl = pbuffer.getGL();
// some stuff is rendered here
gl.glFlush();
pbuffer.swapBuffers();
makeScreenshot(1024,1024);
pbuffer.destroy();
drawable.getContext().makeCurrent();
the makeScreenshot-function basically calls the Screenshot.writeToFile function.
could it be that the textures i have on my original drawable are not available on the pbuffer?