From: Marek Olšák Date: Sat, 19 Nov 2011 13:30:13 +0000 (+0100) Subject: glsl: when cloning a variable, copy the depth layout too X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=90be99427a04a36973f9e3d19161065e1c5177b3;p=mesa.git glsl: when cloning a variable, copy the depth layout too This fixes AMD_conservative_depth. Reviewed-by: Kenneth Graunke --- diff --git a/src/glsl/ir_clone.cpp b/src/glsl/ir_clone.cpp index e8ac9fbe456..c63615c7eb3 100644 --- a/src/glsl/ir_clone.cpp +++ b/src/glsl/ir_clone.cpp @@ -51,6 +51,7 @@ ir_variable::clone(void *mem_ctx, struct hash_table *ht) const var->pixel_center_integer = this->pixel_center_integer; var->explicit_location = this->explicit_location; var->has_initializer = this->has_initializer; + var->depth_layout = this->depth_layout; var->num_state_slots = this->num_state_slots; if (this->state_slots) {