mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-02-17 01:31:47 +00:00
Don't use memset in idMat4::Zero
This commit is contained in:
parent
57f09de425
commit
8fa3793410
1 changed files with 4 additions and 1 deletions
|
@ -1065,7 +1065,10 @@ ID_INLINE bool idMat4::operator!=( const idMat4 &a ) const {
|
|||
}
|
||||
|
||||
ID_INLINE void idMat4::Zero( void ) {
|
||||
memset( mat, 0, sizeof( idMat4 ) );
|
||||
mat[0].x = 0.0f; mat[0].y = 0.0f; mat[0].z = 0.0f; mat[0].w = 0.0f;
|
||||
mat[1].x = 0.0f; mat[1].y = 0.0f; mat[1].z = 0.0f; mat[1].w = 0.0f;
|
||||
mat[2].x = 0.0f; mat[2].y = 0.0f; mat[2].z = 0.0f; mat[2].w = 0.0f;
|
||||
mat[3].x = 0.0f; mat[3].y = 0.0f; mat[3].z = 0.0f; mat[3].w = 0.0f;
|
||||
}
|
||||
|
||||
ID_INLINE void idMat4::Identity( void ) {
|
||||
|
|
Loading…
Reference in a new issue