glsl: Fix usage of the wrong union member in program_resource_visitor::recursion.
In the array-of-struct case, recursion() takes the row_major flag for each iteration from 't->fields.structure[i]', but 't' is not a record type. Inherit the array declaration row_major flag instead. This mistake was found by running piglit on valgrind. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=69449 Cc: "9.1 9.2" <email@example.com> Reviewed-by: Ian Romanick <firstname.lastname@example.org> Tested-by: Kenneth Graunke <email@example.com>
Showing with 2 additions and 2 deletions