Mesa (mesa_7_5_branch): mesa: add missing return after catching program error

Brian Paul brianp at kemper.freedesktop.org
Thu Jul 30 14:24:12 UTC 2009


Module: Mesa
Branch: mesa_7_5_branch
Commit: 7d93f817c9c5222e2bdbaa9fa9f03fc502bfe878
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7d93f817c9c5222e2bdbaa9fa9f03fc502bfe878

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Jul 30 08:20:01 2009 -0600

mesa: add missing return after catching program error

---

 src/mesa/shader/arbprogparse.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c
index 0d4f13c..1089792 100644
--- a/src/mesa/shader/arbprogparse.c
+++ b/src/mesa/shader/arbprogparse.c
@@ -2008,6 +2008,7 @@ parse_param (GLcontext * ctx, const GLubyte ** inst, struct var_cache **vc_head,
          program_error(ctx, Program->Position,
               "Declared parameter array length does not match parameter list");
       }
+      return 1;
    }
 
    (*inst)++;




More information about the mesa-commit mailing list