GLReadBufferUtil.readPixel changed orientation?

Posted by Martin on
URL: https://forum.jogamp.org/GLReadBufferUtil-readPixel-changed-orientation-tp4033366.html

Hi,

In Jzy3d, I used to to create screenshots as follow :

GLReadBufferUtil screenshot = new GLReadBufferUtil(false, false);
screenshot.readPixels(gl, true);

And it has been working for years :)

I recently noticed that the screenshot is serialized up-side-down so I wonder if I should switch to a definitive
screenshot.readPixels(gl, false);

or if I should consider some more subtle reason to say true or false before reading pixels.

Thanks in advance for your suggestions.

Martin