mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
parser: Set NumParameters
This commit is contained in:
parent
44843c7533
commit
c2ee82d693
2 changed files with 4 additions and 0 deletions
|
|
@ -4959,6 +4959,8 @@ _mesa_parse_arb_program(GLcontext *ctx, GLenum target, const GLubyte *str,
|
|||
}
|
||||
state->prog->NumInstructions++;
|
||||
|
||||
state->prog->NumParameters = state->prog->Parameters->NumParameters;
|
||||
|
||||
/*
|
||||
* Initialize native counts to logical counts. The device driver may
|
||||
* change them if program is translated into a hardware program.
|
||||
|
|
|
|||
|
|
@ -2175,6 +2175,8 @@ _mesa_parse_arb_program(GLcontext *ctx, GLenum target, const GLubyte *str,
|
|||
}
|
||||
state->prog->NumInstructions++;
|
||||
|
||||
state->prog->NumParameters = state->prog->Parameters->NumParameters;
|
||||
|
||||
/*
|
||||
* Initialize native counts to logical counts. The device driver may
|
||||
* change them if program is translated into a hardware program.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue