Permalink
Browse files

Merge pull request #5 from zhumeng1989/mytest

Fixed a bug in test/gtx_simd_mat4->test_mulD
  • Loading branch information...
2 parents 82f86a8 + 4479150 commit 28ea6eb5c4a7a7f9c68b73e3b73dab9919108728 Christophe Riccio committed Mar 25, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/gtx/gtx_simd_mat4.cpp
View
4 test/gtx/gtx_simd_mat4.cpp
@@ -181,7 +181,9 @@ void test_mulD(std::vector<glm::mat4> const & Data, std::vector<glm::mat4> & Out
{
_mm_prefetch((char*)&Data[i + 1], _MM_HINT_T0);
glm::simdMat4 m(Data[i]);
- glm::detail::sse_mul_ps((__m128 const * const)&m, (__m128 const * const)&m, (__m128*)&Out[i]);
+ glm::simdMat4 o;
+ glm::detail::sse_mul_ps((__m128 const * const)&m, (__m128 const * const)&m, (__m128*)&o);
+ Out[i] = *(glm::mat4*)&o;
}
std::clock_t TimeEnd = clock();

0 comments on commit 28ea6eb

Please sign in to comment.