final GL gl = GLContext.getCurrentGL();
final int pixFormat = JoglTextureUtil.getGLPixelFormat(format);
final int pixDataType = JoglTextureUtil.getGLPixelDataType(type);
// N.B: it expects depth = 1 & pack = true
gl.glReadPixels(x, y, w, h, pixFormat, pixDataType, store);
}
@Override
public int getExpectedBufferSizeToGrabScreenContents(final ImageDataFormat format, final PixelDataType type,
final int w, final int h) {