Mesa (mesa_7_5_branch): mesa: move misplaced return statement
Brian Paul
brianp at kemper.freedesktop.org
Thu Jul 30 15:03:11 UTC 2009
Module: Mesa
Branch: mesa_7_5_branch
Commit: 35e3449ad7a01c63219249b37886d59e93cbf7ac
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=35e3449ad7a01c63219249b37886d59e93cbf7ac
Author: Brian Paul <brianp at vmware.com>
Date: Thu Jul 30 09:02:27 2009 -0600
mesa: move misplaced return statement
Fixes regression from commit 7d93f817c9c5222e2bdbaa9fa9f03fc502bfe878
---
src/mesa/shader/arbprogparse.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c
index 1089792..8607940 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)++;
More information about the mesa-commit
mailing list