compiles on ARM

This commit is contained in:
Ricardo Quesada 2013-08-30 21:08:28 -07:00
parent 09c0234821
commit 9ad1ab50fd
1 changed files with 3 additions and 2 deletions

View File

@ -218,8 +218,9 @@ kmMat4* const kmMat4Multiply(kmMat4* pOut, const kmMat4* pM1, const kmMat4* pM2)
{ {
#if defined(__ARM_NEON__) #if defined(__ARM_NEON__)
float mat[16]; // It is possible to skip the memcpy() since "out" does not overwrite p1 or p2.
// float *mat = pOut->mat; // otherwise a temp must be needed.
float *mat = pOut->mat;
// Invert column-order with row-order // Invert column-order with row-order
NEON_Matrix4Mul( &pM2->mat[0], &pM1->mat[0], &mat[0] ); NEON_Matrix4Mul( &pM2->mat[0], &pM1->mat[0], &mat[0] );