From 45008b225e28eb700fa0f7d3ff69b7c1db94fadf Mon Sep 17 00:00:00 2001 From: Forest Fox Date: Thu, 18 Apr 2024 07:31:23 +0300 Subject: [PATCH] Fixed vec equality check function from the compute_vector_decl.hpp file --- glm/detail/compute_vector_decl.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glm/detail/compute_vector_decl.hpp b/glm/detail/compute_vector_decl.hpp index 00d7de5e1..709f8e4af 100644 --- a/glm/detail/compute_vector_decl.hpp +++ b/glm/detail/compute_vector_decl.hpp @@ -159,8 +159,8 @@ namespace glm { GLM_FUNC_QUALIFIER GLM_CONSTEXPR static bool call(vec const& v1, vec const& v2) { bool b = true; - for (length_t i = 0; i < L; ++i) - b = b && detail::compute_equal::is_iec559>::call(v1.x, v2.x); + for (length_t i = 0; b && i < L; ++i) + b = detail::compute_equal::is_iec559>::call(v1[i], v2[i]); return b; } };