diff options
Diffstat (limited to 'src/glsl/opt_array_splitting.cpp')
-rw-r--r-- | src/glsl/opt_array_splitting.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/glsl/opt_array_splitting.cpp b/src/glsl/opt_array_splitting.cpp index 5cf448b196d..b9c70dc9006 100644 --- a/src/glsl/opt_array_splitting.cpp +++ b/src/glsl/opt_array_splitting.cpp @@ -347,8 +347,7 @@ optimize_split_arrays(exec_list *instructions, bool linked) const struct glsl_type *subtype; if (type->is_matrix()) - subtype = glsl_type::get_instance(GLSL_TYPE_FLOAT, - type->vector_elements, 1); + subtype = type->column_type(); else subtype = type->fields.array; |