diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-06-04 14:41:33 -0600 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-06-04 14:41:33 -0600 |
commit | 028fd5594cd6becfdfc0820b1083729c6033e363 (patch) | |
tree | 5788d6f94433d845f8d02251eaee3d1c6038f546 | |
parent | 871125a68d11c26efdfa930cf29cdeb8dcc169a5 (diff) |
Set the attribute as used.
cherry-picked from gallium-0.1
-rw-r--r-- | src/mesa/shader/slang/slang_link.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_link.c b/src/mesa/shader/slang/slang_link.c index 80cd4b6df6..dd4990ba02 100644 --- a/src/mesa/shader/slang/slang_link.c +++ b/src/mesa/shader/slang/slang_link.c @@ -262,6 +262,9 @@ _slang_resolve_attributes(struct gl_shader_program *shProg, return GL_FALSE; } _mesa_add_attribute(shProg->Attributes, name, size, attr); + + /* set the attribute as used */ + usedAttributes |= 1<<attr; } inst->SrcReg[j].Index = VERT_ATTRIB_GENERIC0 + attr; |