summaryrefslogtreecommitdiff
path: root/src/mesa/shader/shader_api.c
diff options
context:
space:
mode:
authorBrian <brian@yutani.localnet.net>2007-01-09 19:26:22 -0700
committerBrian <brian@yutani.localnet.net>2007-01-09 19:26:22 -0700
commit01a91eb65753c9090e1a05d728cf5c23ef49d5d4 (patch)
tree66851c75ed1e7ebea6ce0e351000c9f1a01f4ae1 /src/mesa/shader/shader_api.c
parentb7978af6936d186112727cb9858fe7740eef1a7c (diff)
get rid of STATE_USER_ATTRIB/STATE_AUTO_ATTRIB
Diffstat (limited to 'src/mesa/shader/shader_api.c')
-rw-r--r--src/mesa/shader/shader_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/shader_api.c b/src/mesa/shader/shader_api.c
index 397ce916ea..101c6f1e7e 100644
--- a/src/mesa/shader/shader_api.c
+++ b/src/mesa/shader/shader_api.c
@@ -554,7 +554,7 @@ _mesa_get_attrib_location(GLcontext *ctx, GLuint program,
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;