get rid of STATE_USER_ATTRIB/STATE_AUTO_ATTRIB
diff --git a/src/mesa/shader/shader_api.c b/src/mesa/shader/shader_api.c
index 397ce91..101c6f1 100644
--- a/src/mesa/shader/shader_api.c
+++ b/src/mesa/shader/shader_api.c
@@ -554,7 +554,7 @@
    if (shProg->Attributes) {
       GLint i = _mesa_lookup_parameter_index(shProg->Attributes, -1, name);
       if (i >= 0) {
-         return shProg->Attributes->Parameters[i].StateIndexes[1];
+         return shProg->Attributes->Parameters[i].StateIndexes[0];
       }
    }
    return -1;