Don't use memcpy in idMat3 constructor

This commit is contained in:
Turo Lamminen 2021-01-25 11:50:21 +02:00
parent df9d8cf0ce
commit c67c455180

View file

@ -439,7 +439,9 @@ ID_INLINE idMat3::idMat3( const float xx, const float xy, const float xz, const
}
ID_INLINE idMat3::idMat3( const float src[ 3 ][ 3 ] ) {
memcpy( mat, src, 3 * 3 * sizeof( float ) );
mat[0].x = src[0][0]; mat[0].y = src[0][1]; mat[0].z = src[0][2];
mat[1].x = src[1][0]; mat[1].y = src[1][1]; mat[1].z = src[1][2];
mat[2].x = src[2][0]; mat[2].y = src[2][1]; mat[2].z = src[2][2];
}
ID_INLINE const idVec3 &idMat3::operator[]( int index ) const {