summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2015-09-28 11:03:19 +1000
committerTimothy Arceri <[email protected]>2015-09-28 11:31:50 +1000
commite413d2fbc4b37eb552ee42940fb792e504233e51 (patch)
tree8ad13a85d9844094b19a3ecd4a1a5e7e871c399e /src
parent3c63a2d2f02d9f94f0b633c39508df1269fb7dab (diff)
glsl: fix component size calculation for tessellation and geom shaders
Broken in commit abdab88b30ab when adding arrays of arrays support Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/glsl/link_varyings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/link_varyings.cpp b/src/glsl/link_varyings.cpp
index 0d343d64a2e..7e77a675db1 100644
--- a/src/glsl/link_varyings.cpp
+++ b/src/glsl/link_varyings.cpp
@@ -964,7 +964,7 @@ varying_matches::record(ir_variable *producer_var, ir_variable *consumer_var)
}
slots *= type->matrix_columns;
} else {
- slots = var->type->matrix_columns;
+ slots = type->matrix_columns;
}
this->matches[this->num_matches].num_components = 4 * slots;
} else {