summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader
diff options
context:
space:
mode:
authorAlan Hourihane <[email protected]>2008-06-04 21:25:08 +0100
committerAlan Hourihane <[email protected]>2008-06-04 21:25:41 +0100
commit25641d599fcf770e214bf078ee35b6aae1d7c73e (patch)
tree164c23f1682c37aa875eafc18ebe3b3ca4be9268 /src/mesa/shader
parent2154cb4994c49031b8614dfad8e97c730f4702a6 (diff)
Set the attribute as used.
Diffstat (limited to 'src/mesa/shader')
-rw-r--r--src/mesa/shader/slang/slang_link.c3
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 80cd4b6df62..dd4990ba023 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;