summaryrefslogtreecommitdiff
path: root/src/mesa/shader/slang/slang_link.c
diff options
context:
space:
mode:
authorBrian <brian@yutani.localnet.net>2007-03-22 09:07:27 -0600
committerBrian <brian@yutani.localnet.net>2007-03-22 09:07:27 -0600
commit1bf81e3c5d65b636658d11072f4f027f5c499396 (patch)
tree9a32e209d11e797d390cc2b9961f8fa96010795c /src/mesa/shader/slang/slang_link.c
parent1936b25ebd580c5ef9e8cb471a986da39ef46ca5 (diff)
In _mesa_add_unnamed_constant() and _mesa_lookup_parameter_constant() allow swizzleOut==NULL.
There are times when we don't want to allow swizzling when searching for or adding vector constants. Passing NULL for swizzleOut disables swizzling. This fixes a constant/swizzle bug in link_uniform_vars().
Diffstat (limited to 'src/mesa/shader/slang/slang_link.c')
-rw-r--r--src/mesa/shader/slang/slang_link.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/shader/slang/slang_link.c b/src/mesa/shader/slang/slang_link.c
index a3cc2333ec..bcd54d6fe9 100644
--- a/src/mesa/shader/slang/slang_link.c
+++ b/src/mesa/shader/slang/slang_link.c
@@ -172,10 +172,10 @@ link_uniform_vars(struct gl_shader_program *shProg, struct gl_program *prog)
j = _mesa_lookup_parameter_index(shProg->Uniforms, -1, p->Name);
}
else {
- GLuint swizzle;
+ /*GLuint swizzle;*/
ASSERT(p->Type == PROGRAM_CONSTANT);
if (_mesa_lookup_parameter_constant(shProg->Uniforms, pVals,
- p->Size, &j, &swizzle)) {
+ p->Size, &j, NULL)) {
assert(j >= 0);
}
else {