summaryrefslogtreecommitdiff
path: root/src/glsl/linker.cpp
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-08-24 14:27:27 -0700
committerEric Anholt <eric@anholt.net>2010-08-25 12:38:26 -0700
commit0924ba0c3496160a134d37cec800f902ae805b9c (patch)
tree31dd640618e6aac096ed9c1ae5f18fda23297415 /src/glsl/linker.cpp
parent45388b5467d66a887e9c76b66ae126ec07d4125a (diff)
ir_to_mesa: Convert this code to using linker.cpp's uniform locations.
Fixes: glsl-fs-uniform-array-4.
Diffstat (limited to 'src/glsl/linker.cpp')
-rw-r--r--src/glsl/linker.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp
index cb06036ef2..0348bd01e8 100644
--- a/src/glsl/linker.cpp
+++ b/src/glsl/linker.cpp
@@ -929,6 +929,7 @@ add_uniform(void *mem_ctx, exec_list *uniforms, struct hash_table *ht,
n->slots = vec4_slots;
n->u->Name = strdup(name);
+ n->u->Type = type;
n->u->VertPos = -1;
n->u->FragPos = -1;
n->u->GeomPos = -1;