From 4479150858af7f2a596c52a0ea94b43d81e420dc Mon Sep 17 00:00:00 2001 From: Meng Zhu Date: Sat, 24 Mar 2012 17:25:33 +0800 Subject: [PATCH] Fixed a bug in test/gtx_simd_mat4->test_mulD --- test/gtx/gtx_simd_mat4.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/gtx/gtx_simd_mat4.cpp b/test/gtx/gtx_simd_mat4.cpp index 44a6426a..fbfa6af4 100644 --- a/test/gtx/gtx_simd_mat4.cpp +++ b/test/gtx/gtx_simd_mat4.cpp @@ -181,7 +181,9 @@ void test_mulD(std::vector const & Data, std::vector & 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();