diff options
-rw-r--r-- | src/glsl/lower_packed_varyings.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/lower_packed_varyings.cpp b/src/glsl/lower_packed_varyings.cpp index f8e79bd8ca9..d8bebb52235 100644 --- a/src/glsl/lower_packed_varyings.cpp +++ b/src/glsl/lower_packed_varyings.cpp @@ -645,8 +645,8 @@ lower_packed_varyings_visitor::needs_lowering(ir_variable *var) if (var->data.explicit_location) return false; - if (var->type->without_array()->vector_elements == 4 && - !var->type->is_double()) + const glsl_type *type = var->type->without_array(); + if (type->vector_elements == 4 && !type->is_double()) return false; return true; } |