summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mesa/math/m_matrix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/math/m_matrix.c b/src/mesa/math/m_matrix.c
index 40f92293b02..7c4e9fdcbd6 100644
--- a/src/mesa/math/m_matrix.c
+++ b/src/mesa/math/m_matrix.c
@@ -1437,7 +1437,7 @@ void
_math_matrix_copy( GLmatrix *to, const GLmatrix *from )
{
memcpy( to->m, from->m, sizeof(Identity) );
- memcpy(to->inv, from->inv, sizeof(from->inv));
+ memcpy(to->inv, from->inv, sizeof(*from->inv));
to->flags = from->flags;
to->type = from->type;
}