From 4e87e7863f8eee004b5b2ce0f13978f105ac0f0e Mon Sep 17 00:00:00 2001 From: Tony Wasserka Date: Fri, 6 Nov 2020 13:31:39 +0100 Subject: [PATCH] glsl: Fix -Wshadow warning Reviewed-by: Samuel Pitoiset Part-of: --- src/compiler/glsl_types.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/compiler/glsl_types.h b/src/compiler/glsl_types.h index 744b01dca9a..5e78e1e1ac7 100644 --- a/src/compiler/glsl_types.h +++ b/src/compiler/glsl_types.h @@ -1057,11 +1057,11 @@ public: return 0; unsigned size = length; - const glsl_type *base_type = fields.array; + const glsl_type *array_base_type = fields.array; - while (base_type->is_array()) { - size = size * base_type->length; - base_type = base_type->fields.array; + while (array_base_type->is_array()) { + size = size * array_base_type->length; + array_base_type = array_base_type->fields.array; } return size; }