Login  Register

need to create GLCanvas twice

Posted by ac on Feb 15, 2012; 1:45am
URL: https://forum.jogamp.org/need-to-create-GLCanvas-twice-tp3745696.html

I'm testing some jogl initialization variations based on the typical approach with an FPSAnimator. I got the following simple code: http://pastebin.com/pgrAsSQv, which uses a plain thread to drive the frame rendering. The only strange thing is that I need to have the additional "canvas = new GLCanvas(null)" line at the beginning of setup(), in order to get the rendering working properly (otherwise the window just remains white, without any message or error). Am I doing something wrong here?

System:
win7 professional sp1
nvidia geforce 570, driver version 285.62
jogl 2.0-rc5