summaryrefslogtreecommitdiff
path: root/src/mesa/shader/program_parse.tab.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/shader/program_parse.tab.c')
-rw-r--r--src/mesa/shader/program_parse.tab.c2
1 files changed, 2 insertions, 0 deletions
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.