Re: RawGL2ES2demo fails on the Mac
Posted by
jmaasing on
Sep 18, 2014; 3:20pm
URL: https://forum.jogamp.org/RawGL2ES2demo-fails-on-the-Mac-tp4033162p4033166.html
Sven Gothel wrote
On 09/18/2014 08:27 AM, jmaasing [via jogamp] wrote:
> I wonder what shader it tries to compile. The shader in question is probably
> missing a #version declaration, so JOGL helpfully tries to add it based on
> what it thinks is correct, which ofc it isn't.
JOGL's path to determine the GLSL version,
gl.getContext().getGLSLVersionString(), is correct.
Oh, I didn't explain properly. JOGL will use the correct string for sure. I meant that the shader code may not be adapted to GLSL 1.30 and maybe the shader failed to compile because of #version mismatch.