need to create GLCanvas twice

classic Classic list List threaded Threaded
1 message Options
ac
Reply | Threaded
Open this post in threaded view
|

need to create GLCanvas twice

ac
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