diff options
author | Jerome Glisse <[email protected]> | 2008-02-27 07:42:48 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2008-02-27 08:43:45 -0700 |
commit | 8d94dabad8400cf65363d107a0605a013b542fd1 (patch) | |
tree | c697aea5b047813c0757634f7436ecf5fdff8244 | |
parent | 7a678556d4311168ac1dacdd613eb7b94684e443 (diff) |
mesa: set input read only on success
-rw-r--r-- | src/mesa/shader/arbprogparse.c | 5 |
1 files 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; } |