projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a67855
)
mesa: set input read only on success
author
Jerome Glisse
<glisse@kemper.freedesktop.org>
Wed, 27 Feb 2008 14:42:48 +0000
(07:42 -0700)
committer
Brian
<brian.paul@tungstengraphics.com>
Wed, 27 Feb 2008 15:43:45 +0000
(08:43 -0700)
src/mesa/shader/arbprogparse.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/arbprogparse.c
b/src/mesa/shader/arbprogparse.c
index d662e0b8b58818a3d2c2a515e8d8d7afe28ab9cb..b6b3c88b1450449ebefe143e4d5ae523dee947bb 100644
(file)
--- 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;
}