Browse Source

Fixed the SIMD implementation of compute_vec4_equal for floats

Keiwan Donyagard 4 years ago
parent
commit
a6fcdd0cbc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      glm/detail/type_vec4_simd.inl

+ 1 - 1
glm/detail/type_vec4_simd.inl

@@ -304,7 +304,7 @@ namespace detail
 	{
 	{
 		static bool call(vec<4, float, Q> const& v1, vec<4, float, Q> const& v2)
 		static bool call(vec<4, float, Q> const& v1, vec<4, float, Q> const& v2)
 		{
 		{
-			return _mm_movemask_ps(_mm_cmpeq_ps(v1.data, v2.data)) != 0;
+			return _mm_movemask_ps(_mm_cmpneq_ps(v1.data, v2.data)) == 0;
 		}
 		}
 	};
 	};