glsl: fix packing support for arrays of doubles

Broke in commit f00c5f85b8 when
adding support for multidimensional arrays

Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
This commit is contained in:
Timothy Arceri 2015-04-28 07:26:36 +10:00
parent ff6ee39c19
commit d795cc6508
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}