diff options
author | Fabian Bieler <fabianbieler@fastmail.fm> | 2013-06-14 13:37:07 +0200 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2013-07-18 14:12:44 -0700 |
commit | 6368478712ab46edc18f2210527259d4d433235a (patch) | |
tree | 1bda907b42dfad6955688199309397ae47be45e4 /src | |
parent | 73c9b4b0e05fc66629ba250846948dc55c0e7a0d (diff) | |
download | external_mesa3d-6368478712ab46edc18f2210527259d4d433235a.zip external_mesa3d-6368478712ab46edc18f2210527259d4d433235a.tar.gz external_mesa3d-6368478712ab46edc18f2210527259d4d433235a.tar.bz2 |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/glsl/linker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index ba97ade..da56770 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 |