mirror of
https://github.com/g-truc/glm.git
synced 2024-11-25 01:44:35 +00:00
Fixed vec equality check function from the compute_vector_decl.hpp file
This commit is contained in:
parent
a2844eede8
commit
45008b225e
@ -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;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user