Set the attribute as used.
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 4 Jun 2008 20:41:33 +0000 (14:41 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 4 Jun 2008 20:41:33 +0000 (14:41 -0600)
cherry-picked from gallium-0.1

src/mesa/shader/slang/slang_link.c

index 80cd4b6df624f15b297cef85ed4ea3886de4eeee..dd4990ba023605be51100f21c4feffcab2396237 100644 (file)
@@ -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;