From 8d94dabad8400cf65363d107a0605a013b542fd1 Mon Sep 17 00:00:00 2001 From: Jerome Glisse Date: Wed, 27 Feb 2008 07:42:48 -0700 Subject: [PATCH] mesa: set input read only on success --- src/mesa/shader/arbprogparse.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } -- 2.30.2