summaryrefslogtreecommitdiffstats
path: root/src/glsl/lower_packed_varyings.cpp
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2015-04-28 07:26:36 +1000
committerTimothy Arceri <[email protected]>2015-04-28 07:49:32 +1000
commitd795cc6508cba209c66c658e39d5adbe2022f0fb (patch)
tree64766ce7a50d3c223a5dc37f8f3033dd1f049a94 /src/glsl/lower_packed_varyings.cpp
parentff6ee39c19adc59225d1f0664695c669cd7e5a94 (diff)
glsl: fix packing support for arrays of doubles
Broke in commit f00c5f85b82efe9535b18dbf97c4591fb28aeae6 when adding support for multidimensional arrays Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Diffstat (limited to 'src/glsl/lower_packed_varyings.cpp')
-rw-r--r--src/glsl/lower_packed_varyings.cpp4
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;
}