From e628ac83ce745362b4e1bb719cc2db0a1ce74a76 Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 10 Oct 2005 21:17:03 +0000 Subject: Fixed a gcc compiler error. git-svn-id: http://svn.leocad.org/trunk@426 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- common/matrix.cpp | 4 ++-- common/matrix.h | 2 +- 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(); -- cgit v1.2.3