From 4c5879ff3185e03b3baf0ed2765e06a951b35e9e Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 29 Jul 2009 09:47:14 -0700 Subject: ARB prog parser: Set NumAttributes based on the number of attribs read --- src/mesa/shader/program_parse.y | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa/shader/program_parse.y') diff --git a/src/mesa/shader/program_parse.y b/src/mesa/shader/program_parse.y index 6c50491ffc2..c7e36096e0b 100644 --- a/src/mesa/shader/program_parse.y +++ b/src/mesa/shader/program_parse.y @@ -2280,6 +2280,7 @@ _mesa_parse_arb_program(GLcontext *ctx, GLenum target, const GLubyte *str, state->prog->NumInstructions++; state->prog->NumParameters = state->prog->Parameters->NumParameters; + state->prog->NumAttributes = _mesa_bitcount(state->prog->InputsRead); /* * Initialize native counts to logical counts. The device driver may -- cgit v1.2.3