parser: Set NumParameters
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 22 Jul 2009 22:27:31 +0000 (15:27 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 22 Jul 2009 22:27:31 +0000 (15:27 -0700)
src/mesa/shader/program_parse.tab.c
src/mesa/shader/program_parse.y

index 8f8dae922388338c0b080fd0685924a3237511f0..40d48d597b9c019e8c4a613900c0ddaac7c01e0b 100644 (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.
index 6881562902e4e34169c59c6145133c516e72966f..81b06ac13c92dce49d4e1d704832e8d51bb2d86f 100644 (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.