glsl2: Set the type on cloned tex instructions.
authorEric Anholt <eric@anholt.net>
Thu, 22 Jul 2010 22:34:01 +0000 (15:34 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 22 Jul 2010 22:34:01 +0000 (15:34 -0700)
src/glsl/ir_clone.cpp

index a3e4a3ae311a66702376d00f98884ca76ae4a30b..c49a7324818c1dc2281d38e6d7a5bf57c3a3b3c7 100644 (file)
@@ -210,6 +210,7 @@ ir_texture::clone(struct hash_table *ht) const
 {
    void *ctx = talloc_parent(this);
    ir_texture *new_tex = new(ctx) ir_texture(this->op);
+   new_tex->type = this->type;
 
    new_tex->sampler = this->sampler->clone(ht);
    new_tex->coordinate = this->coordinate->clone(ht);