summaryrefslogtreecommitdiffstats
path: root/src/mesa/math
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-07-30 08:29:08 -0600
committerBrian Paul <[email protected]>2012-07-30 08:30:15 -0600
commitb51be8786f681210ed865c46065770ba91bc7bcb (patch)
tree4ceafbdd1c8fec2dfc003689adf0484fc7284353 /src/mesa/math
parent502c10839e53e7f7e709c10927405d1b84961b80 (diff)
mesa: fix _math_matrix_copy(), again
The matrix is 16 GLfloats in size. Since from->inv is just a pointer (not an array), sizeof(*from->inv) wasn't right.
Diffstat (limited to 'src/mesa/math')
-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 7c4e9fdcbd6..00a6c814fe3 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, 16 * sizeof(GLfloat));
to->flags = from->flags;
to->type = from->type;
}