diff options
-rw-r--r-- | src/glsl/link_varyings.cpp | 2 |
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 { |