Re: glClear issue
Posted by
caderape on
May 02, 2020; 10:05pm
URL: https://forum.jogamp.org/glClear-issue-tp4040576p4040584.html
Okay, i found a solution. A tricky one with double condition, but the point is, it work as i want.
The display is called two time at begining, so we have to skip the first frame, and clear the surface at the second display.
Then we can keep the background color and not have a flip between the black screen and the colored screen, and we can save old draws.
https://pastebin.com/d1uV2hmXedit: nvm, when i change the color of the background while running, it start flipping with the old color. I will just give up. Thx for the help, i'm gonna try javaFX