summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/matrix.cpp4
-rw-r--r--common/matrix.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/common/matrix.cpp b/common/matrix.cpp
index e69e870..8f19cbd 100644
--- a/common/matrix.cpp
+++ b/common/matrix.cpp
@@ -205,9 +205,9 @@ void Matrix::LoadIdentity ()
memcpy (&m[0], &Identity, sizeof(float[16]));
}
-void Matrix::Multiply (Matrix& m1, Matrix& m2)
+void Matrix::Multiply(const Matrix& m1, const Matrix& m2)
{
- matmul (m, m1.m, m2.m);
+ matmul(m, m1.m, m2.m);
}
void Matrix::Rotate (float angle, float x, float y, float z)
diff --git a/common/matrix.h b/common/matrix.h
index 733f16b..910cc78 100644
--- a/common/matrix.h
+++ b/common/matrix.h
@@ -30,7 +30,7 @@ class Matrix
void LoadIdentity();
void Translate(float x, float y, float z);
- void Multiply(Matrix& m1, Matrix& m2);
+ void Multiply(const Matrix& m1, const Matrix& m2);
bool Invert();
void Transpose3();