Browse Source

fixed SSE reflect

Christophe Riccio 15 years ago
parent
commit
9bfef421e2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      glm/core/intrinsic_geometric.inl

+ 1 - 1
glm/core/intrinsic_geometric.inl

@@ -90,7 +90,7 @@ inline __m128 _mm_ffd_ps(__m128 N, __m128 I, __m128 Nref)
 inline __m128 _mm_rfe_ps(__m128 I, __m128 N)
 {
 	__m128 dot0 = _mm_dot_ps(N, I);
-	__m128 mul0 = _mm_mul_ps(N, I);
+	__m128 mul0 = _mm_mul_ps(N, dot0);
 	__m128 mul1 = _mm_mul_ps(mul0, glm::detail::two);
 	__m128 sub0 = _mm_sub_ps(I, mul1);
 	return sub0;