diff options
author | Ian Romanick <[email protected]> | 2010-07-07 16:11:10 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-07-12 14:56:21 -0700 |
commit | 10d222b70266a1b6e8dde90652156c6e18bcd3c8 (patch) | |
tree | b0038a425505436df603605e85b44b3a1bb8739a /src/glsl/ir_clone.cpp | |
parent | 0b9ae3befb0bf80e000b159fd44c961a144f9c36 (diff) |
glsl2: Add missing fields in ir_variable::clone
Diffstat (limited to 'src/glsl/ir_clone.cpp')
-rw-r--r-- | src/glsl/ir_clone.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/glsl/ir_clone.cpp b/src/glsl/ir_clone.cpp index cf21c24d732..f1d2851793f 100644 --- a/src/glsl/ir_clone.cpp +++ b/src/glsl/ir_clone.cpp @@ -45,8 +45,16 @@ ir_variable::clone(struct hash_table *ht) const var->read_only = this->read_only; var->centroid = this->centroid; var->invariant = this->invariant; + var->shader_in = this->shader_in; + var->shader_out = this->shader_out; var->mode = this->mode; var->interpolation = this->interpolation; + var->array_lvalue = this->array_lvalue; + var->location = this->location; + var->warn_extension = this->warn_extension; + + if (this->constant_value) + var->constant_value = this->constant_value->clone(ht); if (ht) { hash_table_insert(ht, var, (void *)const_cast<ir_variable *>(this)); |