glsl/linker: Use correct array length when linking inter-stage uniforms and varyings.
authorFabian Bieler <fabianbieler@fastmail.fm>
Fri, 14 Jun 2013 11:37:07 +0000 (13:37 +0200)
committerMatt Turner <mattst88@gmail.com>
Thu, 18 Jul 2013 21:12:44 +0000 (14:12 -0700)
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Fabian Bieler <fabianbieler@fastmail.fm>
src/glsl/linker.cpp

index ba97ade25e0c76a8988881d73de524ce16dd47ac..da5677067cdc86bb059184776b6af6631f05dee7 100644 (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