I am having some trouble with the
Code :
#version
preprocessor statement. When I use
Code :
#version 130
for example I get the following error:
Code :
Vertex shader failed to compile with the following errors:
ERROR: 0:1: error(#76) Syntax error unexpected tokens following #version
ERROR: error(#273) 1 compilation errors.  No code generated


The reason why I want to change the version from 110 to 130: I wanted to do something like this
Code :
mat3 normalMatrix = transpose(inverse(mat3x3(modelViewMatrix)));
However, the compiler says:
Code :
ERROR: 0:1: error(#202) No matching overloaded function found inverse
ERROR: 0:1: error(#202) No matching overloaded function found transpose
ERROR: 0:1: error(#160) Cannot convert from 'const float' to '3X3 matrix of float'
so I thought maybe this can be fixed by increasing the version.