From c2ee82d6931ad180334b2fcb0028050d65cdd40d Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 22 Jul 2009 15:27:31 -0700 Subject: parser: Set NumParameters --- src/mesa/shader/program_parse.tab.c | 2 ++ src/mesa/shader/program_parse.y | 2 ++ 2 files changed, 4 insertions(+) (limited to 'src/mesa') diff --git a/src/mesa/shader/program_parse.tab.c b/src/mesa/shader/program_parse.tab.c index 8f8dae9223..40d48d597b 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 6881562902..81b06ac13c 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. -- cgit v1.2.3