mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
glsl/linker: Use correct array length when linking inter-stage uniforms and varyings.
Reviewed-by: Paul Berry <stereotype441@gmail.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Signed-off-by: Fabian Bieler <fabianbieler@fastmail.fm>
This commit is contained in:
parent
73c9b4b0e0
commit
6368478712
1 changed files with 1 additions and 1 deletions
|
|
@ -1147,7 +1147,7 @@ update_array_sizes(struct gl_shader_program *prog)
|
|||
}
|
||||
}
|
||||
|
||||
if (size + 1 != var->type->fields.array->length) {
|
||||
if (size + 1 != var->type->length) {
|
||||
/* If this is a built-in uniform (i.e., it's backed by some
|
||||
* fixed-function state), adjust the number of state slots to
|
||||
* match the new array size. The number of slots per array entry
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue