mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-06-01 09:21:58 +00:00
Don't use memset in idMat3::Zero
This commit is contained in:
parent
c67c455180
commit
37ed3e9e46
1 changed files with 3 additions and 1 deletions
|
@ -598,7 +598,9 @@ ID_INLINE bool idMat3::operator!=( const idMat3 &a ) const {
|
||||||
}
|
}
|
||||||
|
|
||||||
ID_INLINE void idMat3::Zero( void ) {
|
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 ) {
|
ID_INLINE void idMat3::Identity( void ) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue