From 12a4a74e94cbea491a35e11bd7a9f809df5085dc Mon Sep 17 00:00:00 2001 From: Markus Amsler Date: Wed, 27 Feb 2008 02:04:06 +0100 Subject: [PATCH] mesa: set input read only on success --- src/mesa/shader/arbprogparse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.30.2