parser: Set NumParameters

This commit is contained in:
Ian Romanick
2009-07-22 15:27:31 -07:00
parent 44843c7533
commit c2ee82d693
2 changed files with 4 additions and 0 deletions

View File

@@ -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.

View File

@@ -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.