From: Markus Amsler Date: Wed, 27 Feb 2008 01:04:06 +0000 (+0100) Subject: mesa: set input read only on success X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=12a4a74e94cbea491a35e11bd7a9f809df5085dc;p=mesa.git mesa: set input read only on success --- 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; }