summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/arbprogparse.c
diff options
context:
space:
mode:
authorMarkus Amsler <[email protected]>2008-02-27 02:04:06 +0100
committerJohn Doe <[email protected]>2008-02-27 02:04:06 +0100
commit12a4a74e94cbea491a35e11bd7a9f809df5085dc (patch)
tree7d0b673d59b6f5bc07d649cc0071be7416fcdaec /src/mesa/shader/arbprogparse.c
parent20b8bff49cba3e8246e29004c5ff38f231d589ff (diff)
mesa: set input read only on success
Diffstat (limited to 'src/mesa/shader/arbprogparse.c')
-rw-r--r--src/mesa/shader/arbprogparse.c4
1 files 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;
}