Definition of unequal for template <class T> class matrix4 error.

even one element difference can lead to the difference of matrix
This commit is contained in:
cslayers 2022-01-25 10:01:43 +08:00 committed by GitHub
parent bf8c6dd043
commit 9d79933730
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -512,14 +512,14 @@ namespace nv
friend bool operator != (const matrix4 &lhs, const matrix4 &rhs)
{
bool r = true;
for (int i = 0; i < 16; i++)
{
r &= lhs._array[i] != rhs._array[i];
if (lhs._array[i] != rhs._array[i])
return true;
}
return r;
return false;
}
union