Re: Checking if a certain version is available on the system
Posted by
ColaColin on
Jun 17, 2015; 9:57am
URL: https://forum.jogamp.org/Checking-if-a-certain-version-is-available-on-the-system-tp4034713p4034725.html
So I've tried this code now:
private static boolean canRunOpenGL() {
GLProfile prof = GLProfile.getDefault();
return prof.isGL3() && prof.hasGLSL();
}
That seems to do the trick on a netbook I have.
On a laptop of another person however this returns true and then proceeds to fail to actually compile the version 330 core shaders with these messages:
http://i.imgur.com/xVQLumk.pngCan I detect that as well with the GLProfile stuff? Or will I need to even extend my code from above to test if it can compile the shaders?