Posted by
Xerxes Rånby on
May 15, 2013; 8:43pm
URL: https://forum.jogamp.org/Shader-status-invalid-with-latest-jars-and-GLJpanel-tp4029177p4029178.html
Hi your code only trigger an exception by your GPU driver.
This is probably identical to the
https://jogamp.org/bugzilla/show_bug.cgi?id=711 bug.
http://forum.jogamp.org/curve-TextRenderer-GL3-couldn-t-link-program-tp4028852.html2013/5/15 BFarns [via jogamp] <ml-node+s762907n4029177h50@n3.nabble.com>
>
> Exception:
>
> ///
> Shader status invalid: Fragment shader failed to compile with the
> following errors:
> ERROR: 0:12: '' : Declaration must include a precision qualifier or the
> default precision must have been previously declared.
> ERROR: compilation errors. No code generated.
>
> javax.media.opengl.GLException: Couldn't link program: ShaderProgram[id=1,
> linked=false, inUse=false, program: 1,
> ShaderCode[id=1, type=VERTEX_SHADER, valid=true, shader: 2, source]
> ShaderCode[id=2, type=FRAGMENT_SHADER, valid=false, shader: 3,
Basically when using GL3 it is required to add precision qualifiers inside
the shader sourcecode or else you will hit this exception when the GPU
driver compiles the code.