mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 02:40:11 +01:00
glsl: initialise record array count to 1
This was only being done in one of the two process methods. Fixes an issue with samplers using the array size of a previous record. Tested-by: Marek Olšák <marek.olsak@amd.com> Cc: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
3c87377d0b
commit
698cdbf492
1 changed files with 1 additions and 0 deletions
|
|
@ -161,6 +161,7 @@ program_resource_visitor::process(ir_variable *var)
|
|||
false, record_array_count);
|
||||
ralloc_free(name);
|
||||
} else {
|
||||
this->set_record_array_count(record_array_count);
|
||||
this->visit_field(t, var->name, row_major, NULL, packing, false);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue