On 01/05/2013 02:49 AM, tag [via jogamp] wrote:
> 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.
Well, I have seen had similar behavior, but a bit more relaxed.
What you describe is the 'scale when resize' "feature",
which removes a burden from the underlying application
to resize the drawable for each step.
In NEWT (AFAIK) we have set this to 'true resize' for OSX
and works well.
For AWT we cannot do anything, since the AWT does the window/surface
initialization .. as far as I understand.
Iff the intermediate resize events are _not_ delivered via AWT
there is nothing we can do about it!
You may create a 'bug' report and tag it as an 'enhancement'.
Even if it is not 'our' failure here, you may use it as reference
to your followup bug report w/ either OpenJDK and/or Oracle.
I don't actually know who is in charge here.
> On Windows
and Linux etc etc .. :)
> it works fine.
> Has anyone run into this or
> know a workaround?
Use NEWT, i.e. NewtCanvasAWT .. if you like.
~Sven