[Mesa-dev] glsl2 compiler regression

Thomas Jones thomas.jones at utoronto.ca
Wed Aug 11 10:13:13 PDT 2010


This shader does not compile with glsl2 and did with the old one

#version 110
void main() {
     gl_TexCoord[1] = gl_MultiTexCoord0*2-1;
     gl_Position = gl_Vertex;
}

The compiler gives the message:

0:5(38): error: Could not implicitly convert operands to arithmetic operator
0:5(40): error: Operands to arithmetic operators must be numeric

If I change the #version 110 to #version 120 it works

also this works too:

#version 110
void main() {
     gl_TexCoord[1] = gl_MultiTexCoord0;
     gl_Position = gl_Vertex;
}


More information about the mesa-dev mailing list