summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-07-31 09:29:31 -0600
committerBrian <[email protected]>2007-07-31 09:29:31 -0600
commitaa5b748c10a8537ccbf6ed9d09d0783df7314c70 (patch)
tree2529de4e2ca9aabca5100fa61c49b70e0f6229fb /src
parent3c182c5bc8fd0f766f84227e15b1a44d5afe1562 (diff)
glGetAttribLocation always returned 1 (bug 11774)
Diffstat (limited to 'src')
-rw-r--r--src/mesa/shader/slang/slang_link.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_link.c b/src/mesa/shader/slang/slang_link.c
index d6d1c7523e5..7b0868e80e5 100644
--- a/src/mesa/shader/slang/slang_link.c
+++ b/src/mesa/shader/slang/slang_link.c
@@ -329,8 +329,10 @@ _slang_resolve_attributes(struct gl_shader_program *shProg,
* glVertex/position.
*/
for (attr = 1; attr < MAX_VERTEX_ATTRIBS; attr++) {
- if (((1 << attr) & usedAttributes) == 0)
+ if (((1 << attr) & usedAttributes) == 0) {
+ usedAttributes |= (1 << attr);
break;
+ }
}
if (attr == MAX_VERTEX_ATTRIBS) {
/* too many! XXX record error log */