Login  Register

Re: unusable profile selected with GL2ES2 capabilities - a bug or a ..feature?

Posted by eimaiosatanas on Aug 30, 2013; 2:45pm
URL: https://forum.jogamp.org/unusable-profile-selected-with-GL2ES2-capabilities-a-bug-or-a-feature-tp4029916p4029924.html

gouessej wrote
No it is a bad idea in my humble opinion because you can still catch this exception and you can know which profiles are supported anyway before trying to use a particular one, I do that in Ardor3D.
Ah, so it is more like a "feature" then :) . Ok got it. One way is to programmatically handle this case, starting from GLES2, and failing that ask for GL4bc, GL3bc and lastly GL2 profiles in that order. That should get me a usable profile every time, at least in theory.

In the mean time, I'd better take a look at the source code for Ardor3D then, see how it handles the GL profiles.

Thank you for your replies kind sirs, they have been most elucidating!