mesa: move misplaced return statement
authorBrian Paul <brianp@vmware.com>
Thu, 30 Jul 2009 15:02:27 +0000 (09:02 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 30 Jul 2009 15:02:36 +0000 (09:02 -0600)
Fixes regression from commit 7d93f817c9c5222e2bdbaa9fa9f03fc502bfe878

src/mesa/shader/arbprogparse.c

index 10897922f6e8ef1aab38d4cb0ae881fd7de6c676..8607940dc1b61550754fc51221002cbc5ee2e21d 100644 (file)
@@ -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)++;