mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 13:38:06 +02:00
ARB prog parser: Set NumAttributes based on the number of attribs read
This commit is contained in:
parent
648dac4251
commit
4c5879ff31
2 changed files with 2 additions and 0 deletions
|
|
@ -5135,6 +5135,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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue