From 0cd329da0584895292937f893d37b85e95ffdbf7 Mon Sep 17 00:00:00 2001 From: Groove Date: Sat, 28 Jul 2018 13:57:38 +0200 Subject: [PATCH] Fixed build --- test/core/core_func_swizzle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/core/core_func_swizzle.cpp b/test/core/core_func_swizzle.cpp index ca240cda..aebd6b85 100644 --- a/test/core/core_func_swizzle.cpp +++ b/test/core/core_func_swizzle.cpp @@ -136,8 +136,8 @@ int test_vec4_swizzle() glm::vec4 B = A.wzyx(); glm::vec4 C = B.wzyx(); - Error += A != B ? 0 : 1; - Error += A == C ? 0 : 1; + Error += glm::any(glm::notEqual(A, B, 0.0001f)) ? 0 : 1; + Error += glm::all(glm::equal(A, C, 0.0001f)) ? 0 : 1; float D = glm::dot(C.wzyx(), C.xyzw()); Error += glm::equal(D, 20.f, 0.001f) ? 0 : 1;