main: array stride for unsized arrays of arrays are calculated like records

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Reviewed-by: Timothy Arceri <t_arceri@yahoo.com.au>
This commit is contained in:
Samuel Iglesias Gonsalvez 2015-10-05 11:06:07 +02:00
parent 82db642042
commit 50d5a36f35
1 changed files with 1 additions and 1 deletions

View File

@ -996,7 +996,7 @@ program_resource_top_level_array_stride(struct gl_shader_program *shProg,
const glsl_type *array_type = field->type->fields.array;
if (interface->interface_packing != GLSL_INTERFACE_PACKING_STD430) {
if (array_type->is_record()) {
if (array_type->is_record() || array_type->is_array()) {
array_stride = array_type->std140_size(row_major);
array_stride = glsl_align(array_stride, 16);
} else {