From: Jerome Glisse Date: Wed, 27 Feb 2008 14:42:48 +0000 (-0700) Subject: mesa: set input read only on success X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8d94dabad8400cf65363d107a0605a013b542fd1;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 d662e0b8b58..b6b3c88b145 100644 --- a/src/mesa/shader/arbprogparse.c +++ b/src/mesa/shader/arbprogparse.c @@ -1576,8 +1576,9 @@ parse_attrib_binding(GLcontext * ctx, const GLubyte ** inst, if (err) { program_error(ctx, Program->Position, "Bad attribute binding"); } - - Program->Base.InputsRead |= (1 << *inputReg); + else { + Program->Base.InputsRead |= (1 << *inputReg); + } return err; }