diff options
author | Markus Amsler <markus.amsler@oribi.org> | 2008-02-27 02:04:06 +0100 |
---|---|---|
committer | John Doe <glisse@freedesktop.org> | 2008-02-27 02:04:06 +0100 |
commit | 12a4a74e94cbea491a35e11bd7a9f809df5085dc (patch) | |
tree | 7d0b673d59b6f5bc07d649cc0071be7416fcdaec /src | |
parent | 20b8bff49cba3e8246e29004c5ff38f231d589ff (diff) |
mesa: set input read only on success
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/shader/arbprogparse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c index ead0580ed4..10fa196586 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; } |