Mesa (glsl2): glsl2: Set the type on cloned tex instructions.

Eric Anholt anholt at kemper.freedesktop.org
Thu Jul 22 22:56:36 UTC 2010


Module: Mesa
Branch: glsl2
Commit: c3081e627302429cdf2ee23a40fb20fa5cbf5770
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c3081e627302429cdf2ee23a40fb20fa5cbf5770

Author: Eric Anholt <eric at anholt.net>
Date:   Thu Jul 22 15:34:01 2010 -0700

glsl2: Set the type on cloned tex instructions.

---

 src/glsl/ir_clone.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/glsl/ir_clone.cpp b/src/glsl/ir_clone.cpp
index a3e4a3a..c49a732 100644
--- a/src/glsl/ir_clone.cpp
+++ b/src/glsl/ir_clone.cpp
@@ -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);




More information about the mesa-commit mailing list