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:
Fabian Bieler 2013-06-14 13:37:07 +02:00 committed by Matt Turner
parent 73c9b4b0e0
commit 6368478712

View file

@ -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