Skip to content

Commit

Permalink
Fixed vec equality check function from the compute_vector_decl.hpp file
Browse files Browse the repository at this point in the history
  • Loading branch information
Fox-Ops-Coder authored and christophe-lunarg committed Apr 21, 2024
1 parent a2844ee commit 45008b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions glm/detail/compute_vector_decl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
};
Expand Down

0 comments on commit 45008b2

Please sign in to comment.