Re: invalid shader version number
Posted by Demoscene Passivist on Nov 20, 2011; 2:18pm
URL: https://forum.jogamp.org/invalid-shader-version-number-tp3519333p3522681.html
>Just checked the OPenGL API version from the current JOGL download at jogamp, and it is 2.0.
OpenGL 2.0 ? U mean JOGL 2.0-rc3 ? JOGL supports all OpenGL versions, up to 4.+. The 2.0 is JOGL's own version number, or what are u referring to ?
>I thought it might be that I was running jre6-u26 on my desktop and jre7 on
>my laptop but I've now rerun the program with jre6-u26 on my laptop and
>I get the same compile/link exceptions.
Also shader compilation and/or OpenGL support has nothing to do with the JRE ur are running. Its completly unrelated. If u can get JOGL2 running on ur VM, the full OpenGL funtionality supported by ur driver/card is available to u.
As u are having problems with different hardware configurations and not in general with ur code make sure u have the newest drivers are installed on both systems. I know this sounds stupid, but it generally resolves most issues with least effort.
When u got ur drivers up2date check what profile u get back from JOGL with a simple "println" of ur "gl" instance. It will give u a hint what profile u actually are using regardless of the casting u have done.