Re: "Shader status invalid" with latest jars and GLJpanel
Posted by
Sven Gothel on
May 17, 2013; 2:23am
URL: https://forum.jogamp.org/Shader-status-invalid-with-latest-jars-and-GLJpanel-tp4029177p4029186.html
On 05/16/2013 12:19 AM, Sven Gothel wrote:
> On 05/15/2013 10:43 PM, Xerxes Rånby [via jogamp] wrote:
>> 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.html>>
>> ERROR: 0:12: '' : Declaration must include a precision qualifier or the
>> default precision must have been previously declared.
>> ERROR: compilation errors. No code generated.
>>
>> 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.
>
> Yup, will add unit tests w/ GL3 core only and GLJPanel (if non existent, ..hmm).
> We will also need to catch the exception to follow the fallback
> CPU based vertical flip strategy, in case of buggy GLSL compiler.
>
https://jogamp.org/bugzilla/show_bug.cgi?id=737GLSL spec [1.30 - 1.40] section 4.5.3 states that fragment program requires a
[default] precision for float values.
Note: GLSL spec >= 1.50 does _not_ require such default precision.
Will rework our ShaderCode customization.