diff options
author | Timothy Arceri <[email protected]> | 2015-10-15 14:10:35 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2015-10-17 08:50:40 +1100 |
commit | 698cdbf49207c30bc2ac38e2f16e531dd3a54db3 (patch) | |
tree | 0c31064fb1d509a42ad6f864690c54dfcd793388 /src | |
parent | 3c87377d0b0d07249ba94d6cb22a8b324bb06ba6 (diff) |
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 <[email protected]>
Cc: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/glsl/link_uniforms.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/link_uniforms.cpp b/src/glsl/link_uniforms.cpp index 647aa2bbdd8..fe00aa30d07 100644 --- a/src/glsl/link_uniforms.cpp +++ b/src/glsl/link_uniforms.cpp @@ -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); } } |