Don't use memset in idMat3::Zero

This commit is contained in:
Turo Lamminen 2021-01-25 12:11:32 +02:00
parent c67c455180
commit 37ed3e9e46

View file

@ -598,7 +598,9 @@ ID_INLINE bool idMat3::operator!=( const idMat3 &a ) const {
}
ID_INLINE void idMat3::Zero( void ) {
memset( mat, 0, sizeof( idMat3 ) );
mat[0].x = 0.0f; mat[0].y = 0.0f; mat[0].z = 0.0f;
mat[1].x = 0.0f; mat[1].y = 0.0f; mat[1].z = 0.0f;
mat[2].x = 0.0f; mat[2].y = 0.0f; mat[2].z = 0.0f;
}
ID_INLINE void idMat3::Identity( void ) {