I'm not sure whether to post this here or in the linux forum. But here it goes...
I have a varying variable that saves the raw z position in the vertex shader as such:
ZPosition = gl_Vertex.z;
Normally, this works great using Nvidia's or ATI/AMD's drivers. But when I ran this under the Mesa's drivers, the x position got saved instead. As a matter of fact, the x position got saved using any of these lines:
ZPosition = gl_Vertex.x;
ZPosition = gl_Vertex.y;
ZPosition = gl_Vertex.z;
But produced sensible results when gl_Vertex was transform via:
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
This is very strange, esp. since according to glxinfo, this set of Mesa drivers should support up to opengl 2.1. Has anyone else had this issue with the Mesa drivers?



