projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9855a6
)
move allocation of shProg->Attributes earlier in function
author
Brian
<brian@yutani.localnet.net>
Thu, 19 Apr 2007 21:22:04 +0000
(15:22 -0600)
committer
Brian
<brian@yutani.localnet.net>
Sat, 21 Apr 2007 16:05:05 +0000
(10:05 -0600)
src/mesa/shader/slang/slang_link.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/slang/slang_link.c
b/src/mesa/shader/slang/slang_link.c
index 48c0d68375e93c19c54606eea48a579d07886924..5a9385571b660be81485a3389ff3a9f35b553838 100644
(file)
--- a/
src/mesa/shader/slang/slang_link.c
+++ b/
src/mesa/shader/slang/slang_link.c
@@
-290,6
+290,9
@@
_slang_resolve_attributes(struct gl_shader_program *shProg,
assert(prog->Target == GL_VERTEX_PROGRAM_ARB);
+ if (!shProg->Attributes)
+ shProg->Attributes = _mesa_new_parameter_list();
+
/* Build a bitmask indicating which attribute indexes have been
* explicitly bound by the user with glBindAttributeLocation().
*/
@@
-299,9
+302,6
@@
_slang_resolve_attributes(struct gl_shader_program *shProg,
usedAttributes |= attr;
}
- if (!shProg->Attributes)
- shProg->Attributes = _mesa_new_parameter_list();
-
/*
* Scan program for generic attribute references
*/