From e800c41c0a6d79e038829b562cebe03768e4f365 Mon Sep 17 00:00:00 2001 From: Gaoyang Zhang Date: Mon, 3 May 2021 00:32:17 +0800 Subject: [PATCH] Fix test due to change of default constructor of qua Signed-off-by: Gaoyang Zhang --- test/core/core_cpp_constexpr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/core/core_cpp_constexpr.cpp b/test/core/core_cpp_constexpr.cpp index 3dc0a92b..37dc7a70 100644 --- a/test/core/core_cpp_constexpr.cpp +++ b/test/core/core_cpp_constexpr.cpp @@ -712,7 +712,7 @@ static int test_quat() { static_assert(glm::quat::length() == 4, "GLM: Failed constexpr"); static_assert(glm::quat(1.0f, glm::vec3(0.0f)).w > 0.0f, "GLM: Failed constexpr"); - static_assert(glm::quat(1.0f, 0.0f, 0.0f, 0.0f).w > 0.0f, "GLM: Failed constexpr"); + static_assert(glm::quat(0.0f, 0.0f, 0.0f, 1.0f).w > 0.0f, "GLM: Failed constexpr"); glm::quat constexpr Q = glm::identity(); static_assert(Q.x - glm::quat(1.0f, glm::vec3(0.0f)).x <= glm::epsilon(), "GLM: Failed constexpr");