From: Brian Paul Date: Wed, 4 Jun 2008 20:41:33 +0000 (-0600) Subject: Set the attribute as used. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=028fd5594cd6becfdfc0820b1083729c6033e363;p=mesa.git Set the attribute as used. cherry-picked from gallium-0.1 --- 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<SrcReg[j].Index = VERT_ATTRIB_GENERIC0 + attr;