Re: NPE when getting GLDrawableFactory
Posted by
François Coupal on
Jan 20, 2011; 8:15pm
URL: https://forum.jogamp.org/NPE-when-getting-GLDrawableFactory-tp2276026p2295703.html
Thanks for the heads-up. I gathered the missing information and added it to the bug report. Here is the bug link:
https://jogamp.org/bugzilla/show_bug.cgi?id=460The idea behind all this is to get the extensions as fast as I can, and if possible without having to set-up too much. I use a GLCanvas mainly because it's the main GLDrawable my main project use. For this I heard the best way is to use a pbuffer, but acquiring that bpuffer ain't trivial, to say the least.
At that point I'm not even trying to render anything, just to get some vital info on the video card and run some tests on off-screen rendering (like testing FBOs multisampling for example). These more advanced tests could be done afterwards, and thus are not in the small code snippet above.
Ideally, I'd like to dynamically set up my render engine based on the capabilities of the graphic card. Depending on which extensions are availiable, many effects won't work, or better effects can be atempted if some very specific extension are availiable. This information is best gotten as soon as possible. And in my engine, that's even before my main rendering frame has been set up.