ARB prog parser: Set NumAttributes based on the number of attribs read

This commit is contained in:
Ian Romanick
2009-07-29 09:47:14 -07:00
parent 648dac4251
commit 4c5879ff31
2 changed files with 2 additions and 0 deletions

View File

@@ -5135,6 +5135,7 @@ _mesa_parse_arb_program(GLcontext *ctx, GLenum target, const GLubyte *str,
state->prog->NumInstructions++; state->prog->NumInstructions++;
state->prog->NumParameters = state->prog->Parameters->NumParameters; 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 * Initialize native counts to logical counts. The device driver may

View File

@@ -2280,6 +2280,7 @@ _mesa_parse_arb_program(GLcontext *ctx, GLenum target, const GLubyte *str,
state->prog->NumInstructions++; state->prog->NumInstructions++;
state->prog->NumParameters = state->prog->Parameters->NumParameters; 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 * Initialize native counts to logical counts. The device driver may