parser: Set NumParameters
This commit is contained in:
@@ -4959,6 +4959,8 @@ _mesa_parse_arb_program(GLcontext *ctx, GLenum target, const GLubyte *str,
|
|||||||
}
|
}
|
||||||
state->prog->NumInstructions++;
|
state->prog->NumInstructions++;
|
||||||
|
|
||||||
|
state->prog->NumParameters = state->prog->Parameters->NumParameters;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initialize native counts to logical counts. The device driver may
|
* Initialize native counts to logical counts. The device driver may
|
||||||
* change them if program is translated into a hardware program.
|
* 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->NumInstructions++;
|
||||||
|
|
||||||
|
state->prog->NumParameters = state->prog->Parameters->NumParameters;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initialize native counts to logical counts. The device driver may
|
* Initialize native counts to logical counts. The device driver may
|
||||||
* change them if program is translated into a hardware program.
|
* change them if program is translated into a hardware program.
|
||||||
|
Reference in New Issue
Block a user