From eee68d3631813580a14fa51fda6f0c959279256c Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Thu, 7 Oct 2010 15:13:38 -0700 Subject: glsl: Track explicit location in AST to IR translation --- src/glsl/ir_clone.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/glsl/ir_clone.cpp') diff --git a/src/glsl/ir_clone.cpp b/src/glsl/ir_clone.cpp index 18543a35aa..a3cc8dbc97 100644 --- a/src/glsl/ir_clone.cpp +++ b/src/glsl/ir_clone.cpp @@ -51,6 +51,9 @@ ir_variable::clone(void *mem_ctx, struct hash_table *ht) const var->warn_extension = this->warn_extension; var->origin_upper_left = this->origin_upper_left; var->pixel_center_integer = this->pixel_center_integer; + var->explicit_location = this->explicit_location; + if (this->explicit_location) + var->location = this->location; if (this->constant_value) var->constant_value = this->constant_value->clone(mem_ctx, ht); -- cgit v1.2.3