mesa: set input read only on success
authorMarkus Amsler <markus.amsler@oribi.org>
Wed, 27 Feb 2008 01:04:06 +0000 (02:04 +0100)
committerJohn Doe <glisse@freedesktop.org>
Wed, 27 Feb 2008 01:04:06 +0000 (02:04 +0100)
src/mesa/shader/arbprogparse.c

index ead0580..10fa196 100644 (file)
@@ -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;
 }