Skip to content

Commit

Permalink
fixed temp var in mat33_transpose
Browse files Browse the repository at this point in the history
  • Loading branch information
dusty-nv committed Aug 30, 2022
1 parent e0fd769 commit 4689ba4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mat33.h
Original file line number Diff line number Diff line change
Expand Up @@ -445,9 +445,13 @@ inline void mat33_transform( T* dst, const T* src, const int N, const T mat[3][3
template<typename T>
inline void mat33_transpose( T dst[3][3], const T src[3][3] )
{
T tmp[3][3];

for( uint32_t i=0; i < 3; i++ )
for( uint32_t j=0; j < 3; j++ )
dst[i][j] = src[j][i];
tmp[i][j] = src[j][i];

mat33_copy(dst, tmp);
}


Expand Down

0 comments on commit 4689ba4

Please sign in to comment.