Re: Problem with glReadPixels() on OS X retina display

Posted by Sven Gothel on
URL: https://forum.jogamp.org/Problem-with-glReadPixels-on-OS-X-retina-display-tp4033426p4033428.html

On 10/21/2014 08:38 PM, martinezmj [via jogamp] wrote:
> This appeared to fix it:
> canvas = new GLCanvas(caps);
> canvas.setSurfaceScale(new int[] { ScalableSurface.IDENTITY_PIXELSCALE,
> ScalableSurface.IDENTITY_PIXELSCALE });
>

This removes HiDPI ofc.

Otherwise .. simply use getSurface[Width|Height]() which returns pixel units
for ReadPixels.

~Sven




signature.asc (828 bytes) Download Attachment