Fixed vec equality check function from the compute_vector_decl.hpp file

This commit is contained in:
Forest Fox 2024-04-18 07:31:23 +03:00 committed by Christophe
parent a2844eede8
commit 45008b225e

View File

@ -159,8 +159,8 @@ namespace glm {
GLM_FUNC_QUALIFIER GLM_CONSTEXPR static bool call(vec<L, T, Q> const& v1, vec<L, T, Q> const& v2)
{
bool b = true;
for (length_t i = 0; i < L; ++i)
b = b && detail::compute_equal<T, std::numeric_limits<T>::is_iec559>::call(v1.x, v2.x);
for (length_t i = 0; b && i < L; ++i)
b = detail::compute_equal<T, std::numeric_limits<T>::is_iec559>::call(v1[i], v2[i]);
return b;
}
};