summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/arbprogparse.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-07-30 09:02:27 -0600
committerBrian Paul <[email protected]>2009-07-30 09:02:36 -0600
commit35e3449ad7a01c63219249b37886d59e93cbf7ac (patch)
tree051bf1ae1b39d880ede42badd91ebc2b5b0ebfbc /src/mesa/shader/arbprogparse.c
parent7d93f817c9c5222e2bdbaa9fa9f03fc502bfe878 (diff)
mesa: move misplaced return statement
Fixes regression from commit 7d93f817c9c5222e2bdbaa9fa9f03fc502bfe878
Diffstat (limited to 'src/mesa/shader/arbprogparse.c')
-rw-r--r--src/mesa/shader/arbprogparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c
index 10897922f6e..8607940dc1b 100644
--- a/src/mesa/shader/arbprogparse.c
+++ b/src/mesa/shader/arbprogparse.c
@@ -2007,8 +2007,8 @@ parse_param (GLcontext * ctx, const GLubyte ** inst, struct var_cache **vc_head,
if (specified_length != (int)param_var->param_binding_length) {
program_error(ctx, Program->Position,
"Declared parameter array length does not match parameter list");
+ return 1;
}
- return 1;
}
(*inst)++;