Hi,
I have a simple vertex shader that works on NVIDIA but not on ATI. I'm trying to determine if it is a driver bug. The attribute inputs are:
GetAttribLocation returns 1 and 2 for position and normal, respectively. Then, I use these indices when preparing a VAO:Code :layout(location = 1) in vec3 position; layout(location = 2) in vec3 normal;
This works ok on NVIDIA but no geometry is rendered on an ATI Radeon HD 5870 with Catalyst 10.10 on Windows Vista-64. If I change the attribute locations from 1 and 2, to 0 and 1, it works on ATI. I can't find anywhere in the GLSL or OpenGL spec that says attribute locations must start at zero though. Thoughts?Code :glEnableVertexAttribArray(1); glVertexAttribPointer(1, /* ... */); glEnableVertexAttribArray(2); glVertexAttribPointer(2, /* ... */);
Regards,
Patrick



