Login  Register

Resize behavior of GLCanvas on OS X (10.7 and 10..8)

Posted by tag on Jan 05, 2013; 1:49am
URL: https://forum.jogamp.org/Resize-behavior-of-GLCanvas-on-OS-X-10-7-and-10-8-tp4027702.html

When a frame containing a GLCanvas is resized by the app user, the image currently displayed is distorted to fit the new size while the window is resizing. Once the resize is complete the display method is called so code can adjust the viewport and view for the new size, correcting the distortion. Apparently, something is stretching and displaying the current contents of the frame buffer before allowing the app to redraw. This happens only on OS X using JOGL 2 and Java 7. On Windows it works fine. Has anyone run into this or know a workaround?