Re: How to handle different versions of OpenGL in library
Posted by
gouessej on
Jun 03, 2012; 10:22pm
URL: https://forum.jogamp.org/How-to-handle-different-versions-of-OpenGL-in-library-tp4025129p4025134.html
Hi
It is the good approach but it would be better if you reduce the number of checks.
At first, when it is possible, just check whether you have to use the fixed pipeline or the programmable pipeline. Use the most general interface.
Secondly, a GL instance should never be stored, please have a look at the user guide and the wiki.