summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang/slang_link.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-04-19 15:22:04 -0600
committerBrian <[email protected]>2007-04-21 10:05:05 -0600
commitfe16b9f6633e468aa2244c36e540c1cfac2517e6 (patch)
tree8c89c9f1ee178dd5e59f4585fbb89621b43c7e38 /src/mesa/shader/slang/slang_link.c
parentc9855a60f4b4b478bd036db8cefc06d1c7ff521d (diff)
move allocation of shProg->Attributes earlier in function
Diffstat (limited to 'src/mesa/shader/slang/slang_link.c')
-rw-r--r--src/mesa/shader/slang/slang_link.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/shader/slang/slang_link.c b/src/mesa/shader/slang/slang_link.c
index 48c0d68375e..5a9385571b6 100644
--- 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
*/