glsl/linker: Use correct array length when linking inter-stage uniforms and varyings. 50/7550/1
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 ba97ade..da56770 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