diff options
author | Ian Romanick <[email protected]> | 2009-07-22 15:27:31 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2009-07-22 15:27:31 -0700 |
commit | c2ee82d6931ad180334b2fcb0028050d65cdd40d (patch) | |
tree | c900665eaa8afd98b5fb0c2bb83fbab7e74237e0 /src/mesa/shader | |
parent | 44843c753301db0e8f8343745777479465f34ccc (diff) |
parser: Set NumParameters
Diffstat (limited to 'src/mesa/shader')
-rw-r--r-- | src/mesa/shader/program_parse.tab.c | 2 | ||||
-rw-r--r-- | src/mesa/shader/program_parse.y | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/shader/program_parse.tab.c b/src/mesa/shader/program_parse.tab.c index 8f8dae92238..40d48d597b9 100644 --- a/src/mesa/shader/program_parse.tab.c +++ b/src/mesa/shader/program_parse.tab.c @@ -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. diff --git a/src/mesa/shader/program_parse.y b/src/mesa/shader/program_parse.y index 6881562902e..81b06ac13c9 100644 --- a/src/mesa/shader/program_parse.y +++ b/src/mesa/shader/program_parse.y @@ -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. |