ARB prog parser: Set NumAttributes based on the number of attribs read
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user