glsl2: Set the type on cloned tex instructions.

This commit is contained in:
Eric Anholt
2010-07-22 15:34:01 -07:00
parent a711ad6bf2
commit c3081e6273

View 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);