summaryrefslogtreecommitdiff
path: root/ir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ir.cpp')
-rw-r--r--ir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir.cpp b/ir.cpp
index 49df75425e..ad75cdad73 100644
--- a/ir.cpp
+++ b/ir.cpp
@@ -59,7 +59,7 @@ ir_constant::ir_constant(const struct glsl_type *type, const void *data)
{
const unsigned elements =
((type->vector_elements == 0) ? 1 : type->vector_elements)
- * ((type->matrix_rows == 0) ? 1 : type->matrix_rows);
+ * ((type->matrix_columns == 0) ? 1 : type->matrix_columns);
unsigned size = 0;
this->type = type;