diff options
author | Brian <[email protected]> | 2007-07-31 09:31:41 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-07-31 09:32:28 -0600 |
commit | 59b1233e7075ff54a2cd183234f2a092eef5cc75 (patch) | |
tree | 9d4d1950605e8481a44ddfb3406c99e192f1cf06 | |
parent | e66757c8babe6968ea2e506d1214c8063cbd0760 (diff) |
glGetAttribLocation always returned 1 (bug 11774)
-rw-r--r-- | src/mesa/shader/slang/slang_link.c | 4 |
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 eaa29ba094e..c8457fc483d 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 */ |