summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_clone.cpp
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2013-08-30 15:27:49 -0700
committerIan Romanick <ian.d.romanick@intel.com>2013-09-04 08:10:01 -0700
commitceceaf53ceb7f5251833646a212a1c7e5786511c (patch)
tree6416a6e3c77dbb0f27c4d1dcafb77e66d15481ea /src/glsl/ir_clone.cpp
parentc0e4a4adb7c034c93b258620a5b357ad91229629 (diff)
downloadexternal_mesa3d-ceceaf53ceb7f5251833646a212a1c7e5786511c.zip
external_mesa3d-ceceaf53ceb7f5251833646a212a1c7e5786511c.tar.gz
external_mesa3d-ceceaf53ceb7f5251833646a212a1c7e5786511c.tar.bz2
glsl: Copy ir_variable::assigned and ir_variable::used fields in ::clone method
Nothing currently relies on this, but one of the next patches will. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Paul Berry <stereotype441@gmail.com>
Diffstat (limited to 'src/glsl/ir_clone.cpp')
-rw-r--r--src/glsl/ir_clone.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/ir_clone.cpp b/src/glsl/ir_clone.cpp
index 9d4178d..a75b3b7 100644
--- a/src/glsl/ir_clone.cpp
+++ b/src/glsl/ir_clone.cpp
@@ -59,6 +59,8 @@ ir_variable::clone(void *mem_ctx, struct hash_table *ht) const
var->explicit_binding = this->explicit_binding;
var->has_initializer = this->has_initializer;
var->depth_layout = this->depth_layout;
+ var->assigned = this->assigned;
+ var->used = this->used;
var->num_state_slots = this->num_state_slots;
if (this->state_slots) {