mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
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.
This commit is contained in:
parent
502c10839e
commit
b51be8786f
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue