}
image.texture.enable(gl);
image.texture.bind(gl);
// copy buffer to image
gl.glCopyTexSubImage2D(image.texture.getTarget(), 0, 0, 0, 0, 0, image.getWidth(), image.getHeight());
image.texture.disable(gl);
endDrawing();
}
public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) {}