projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a7aa2a
)
propagate errors from parse_generic_attrib_num in parse_attrib_binding (-> don't...
author
Tilman Sauerbeck
<tilman@freedesktop.org>
Wed, 28 Jun 2006 16:26:20 +0000
(16:26 +0000)
committer
Tilman Sauerbeck
<tilman@freedesktop.org>
Wed, 28 Jun 2006 16:26:20 +0000
(16:26 +0000)
src/mesa/shader/arbprogparse.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/arbprogparse.c
b/src/mesa/shader/arbprogparse.c
index 66ea96b4d3802504a6ae20cf4711ebf51212224a..12db64612ee4ffa27d0f1822b9264e26e56c830e 100644
(file)
--- a/
src/mesa/shader/arbprogparse.c
+++ b/
src/mesa/shader/arbprogparse.c
@@
-1536,7
+1536,10
@@
parse_attrib_binding(GLcontext * ctx, GLubyte ** inst,
case VERTEX_ATTRIB_GENERIC:
{
GLuint attrib;
- if (!parse_generic_attrib_num(ctx, inst, Program, &attrib)) {
+
+ err = parse_generic_attrib_num(ctx, inst, Program, &attrib);
+
+ if (!err) {
*is_generic = 1;
/* Add VERT_ATTRIB_GENERIC0 here because ARB_vertex_program's
* attributes do not alias the conventional vertex
@@
-1556,7
+1559,6
@@
parse_attrib_binding(GLcontext * ctx, GLubyte ** inst,
}
}
- /* Can this even happen? */
if (err) {
const char *msg = "Bad attribute binding";
_mesa_set_program_error(ctx, Program->Position, msg);