Login  Register

Re: RawGL2ES2demo fails on the Mac

Posted by Sven Gothel on Sep 18, 2014; 2:51pm
URL: https://forum.jogamp.org/RawGL2ES2demo-fails-on-the-Mac-tp4033162p4033165.html

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.

Producing the VersionNumber ctxGLSLVersion:

http://jogamp.org/git/?p=jogl.git;a=blob;f=src/jogl/classes/jogamp/opengl/GLContextImpl.java;h=a528c60be38f03aaff27c5bc4321ed22044462c7;hb=HEAD#l1171

http://jogamp.org/git/?p=jogl.git;a=blob;f=src/jogl/classes/javax/media/opengl/GLContext.java;h=6334c35d0f5c65608c608e980702358a08ded9c8;hb=HEAD#l857

Producing the GLSL version directive:

http://jogamp.org/git/?p=jogl.git;a=blob;f=src/jogl/classes/javax/media/opengl/GLContext.java;h=6334c35d0f5c65608c608e980702358a08ded9c8;hb=HEAD#l839

Our unit tests probing all profiles testing w/ RedSquareES2 or GearsES2 etc
utilizing this string pass on all platforms.

~Sven


signature.asc (828 bytes) Download Attachment