Login  Register

Resizing GLCanvas does not redraw immediately

Posted by frederic.bon on May 04, 2020; 1:46pm
URL: https://forum.jogamp.org/Resizing-GLCanvas-does-not-redraw-immediately-tp4040590.html

Using the attached reproducer
reproducer_jogl.java

 make the window fullscreen by clicking the window decoration fullscreen button.

Only a portion of the fullscreen window is drawn in orange, while the whole window should be drawn orange.
This can also be reproduced by resizing the window very fast, a small portion of the window is not drawn with the correct color.

This bug does not happen on windows.

Adding a call to redraw() in display() works around the issue.

This bug has first been reported to SWT team
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=542915)
Their conclusion is that the problem should come from JOGL.

Thanks