From: Fabian Bieler Date: Fri, 14 Jun 2013 11:37:07 +0000 (+0200) Subject: glsl/linker: Use correct array length when linking inter-stage uniforms and varyings. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6368478712ab46edc18f2210527259d4d433235a;p=mesa.git glsl/linker: Use correct array length when linking inter-stage uniforms and varyings. Reviewed-by: Paul Berry Reviewed-by: Ian Romanick Signed-off-by: Fabian Bieler --- diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index ba97ade25e0..da5677067cd 100644 --- a/src/glsl/linker.cpp +++ b/src/glsl/linker.cpp @@ -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