summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/ast_function.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/ast_function.cpp b/src/glsl/ast_function.cpp
index 6c36a04889e..f85b308c1bf 100644
--- a/src/glsl/ast_function.cpp
+++ b/src/glsl/ast_function.cpp
@@ -904,8 +904,8 @@ emit_inline_matrix_constructor(const glsl_type *type,
instructions->push_tail(inst);
}
} else {
- const unsigned rows = type->matrix_columns;
- const unsigned cols = type->vector_elements;
+ const unsigned cols = type->matrix_columns;
+ const unsigned rows = type->vector_elements;
unsigned col_idx = 0;
unsigned row_idx = 0;