diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c index ead0580ed43..10fa1965865 100644 --- a/src/mesa/shader/arbprogparse.c +++ b/src/mesa/shader/arbprogparse.c @@ -1616,10 +1616,10 @@ parse_attrib_binding(GLcontext * ctx, const GLubyte ** inst, if (err) { program_error(ctx, Program->Position, "Bad attribute binding"); + } else { + Program->Base.InputsRead |= (1 << *inputReg); } - Program->Base.InputsRead |= (1 << *inputReg); - return err; }