Bug 1395 - Resizing GLCanvas does not redraw immediately
Summary: Resizing GLCanvas does not redraw immediately
Status: RESOLVED WORKSFORME
Alias: None
Product: Jogl
Classification: JogAmp
Component: swt (show other bugs)
Version: tbd
Hardware: All linux
: P4 normal
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2019-09-24 14:26 CEST by morgan.mathiaut
Modified: 2023-09-29 03:45 CEST (History)
1 user (show)

See Also:
Type: DEFECT
SCM Refs:
Workaround: ---


Attachments
Reproducer (1.82 KB, text/plain)
2019-09-24 14:26 CEST, morgan.mathiaut
Details

Note You need to log in before you can comment on or make changes to this bug.
Description morgan.mathiaut 2019-09-24 14:26:20 CEST
Created attachment 823 [details]
Reproducer

Using the attached reproducer, 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.

My guess is that only the previous size of the window is marked as dirty and redrawn by GLCanvas.
Comment 1 morgan.mathiaut 2020-04-02 16:02:02 CEST
Hi,

Any update for this issue ?

Regards
Comment 2 crougier 2020-05-27 12:51:15 CEST
I tested 2.4.0-rc-20200306 and the bug is still there
Comment 3 Sven Gothel 2023-09-29 03:45:09 CEST
Can't reproduce with (anymore)
com.jogamp.opengl.test.junit.jogl.swt.TestSWTBug643AsyncExec

Tested with SWT 4.26 (as deployed in JOGL for build and testing).

TestSWTBug643AsyncExec does test our GLCanvas as well as NewtCanvasSWT
without animator by default - hence should be comparable.

If the bug still persists please reopen and discuss.
Thank you.