Skip to content

Commit

Permalink
FIx Matrix*x4_LoadIdentity (xash3d_mathlib.h)
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4E69676874466F78 authored and a1batross committed Jan 25, 2025
1 parent 7da9772 commit 98a04c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/xash3d_mathlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ int BoxOnPlaneSide( const vec3_t emins, const vec3_t emaxs, const mplane_t *p );
//
static inline void Matrix3x4_LoadIdentity( matrix3x4 m )
{
memset( m, 0, sizeof( *m ));
memset( m, 0, sizeof( matrix3x4 ));
m[0][0] = m[1][1] = m[2][2] = 1.0f;
}
#define Matrix3x4_Copy( out, in ) memcpy( out, in, sizeof( matrix3x4 ))
Expand All @@ -201,7 +201,7 @@ void Matrix3x4_AnglesFromMatrix( const matrix3x4 in, vec3_t out );

static inline void Matrix4x4_LoadIdentity( matrix4x4 m )
{
memset( m, 0, sizeof( *m ));
memset( m, 0, sizeof( matrix4x4 ));
m[0][0] = m[1][1] = m[2][2] = m[3][3] = 1.0f;
}
#define Matrix4x4_Copy( out, in ) memcpy( out, in, sizeof( matrix4x4 ))
Expand Down

0 comments on commit 98a04c7

Please sign in to comment.