On 02/13/2014 02:22 PM, jmaasing [via jogamp] wrote:
> I thought RasPi was GLES 2.0 only? If you give it GLES 3 shaders I guess they
> will fail to compile and maybe the compiler isn't nice enough to tell you they
> failed.
Note: If you look at our GearsES2 demo - or any other utilizing ShaderCode,
you will see that we add the GLSL version tag and other defines
at runtime depending on the used GLContext version.
Check call hierarchy on 'ShaderCode.addGLSLVersion(GL2ES2 gl)'.
Reason we do this is, b/c some GL implementation can by very picky
and refuse to run any shader code not matching the GLContext version.
~Sven