Skip to content

Commit 45008b2

Browse files
Fox-Ops-Coderchristophe-lunarg
authored andcommitted
Fixed vec equality check function from the compute_vector_decl.hpp file
1 parent a2844ee commit 45008b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

glm/detail/compute_vector_decl.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ namespace glm {
159159
GLM_FUNC_QUALIFIER GLM_CONSTEXPR static bool call(vec<L, T, Q> const& v1, vec<L, T, Q> const& v2)
160160
{
161161
bool b = true;
162-
for (length_t i = 0; i < L; ++i)
163-
b = b && detail::compute_equal<T, std::numeric_limits<T>::is_iec559>::call(v1.x, v2.x);
162+
for (length_t i = 0; b && i < L; ++i)
163+
b = detail::compute_equal<T, std::numeric_limits<T>::is_iec559>::call(v1[i], v2[i]);
164164
return b;
165165
}
166166
};

0 commit comments

Comments
 (0)