mirror of
https://github.com/g-truc/glm.git
synced 2025-04-05 13:35:03 +00:00
Fixed packing tests
This commit is contained in:
parent
16bcc4444f
commit
166c75afec
1 changed files with 4 additions and 1 deletions
|
@ -124,7 +124,9 @@ int test_packHalf2x16()
|
|||
glm::vec2 B(A[i]);
|
||||
glm::uint C = glm::packHalf2x16(B);
|
||||
glm::vec2 D = glm::unpackHalf2x16(C);
|
||||
Error += B == D ? 0 : 1;
|
||||
//Error += B == D ? 0 : 1;
|
||||
Error += glm::all(glm::equalEpsilon(B, D, 1.0f / 127.f)) ? 0 : 1;
|
||||
assert(!Error);
|
||||
}
|
||||
|
||||
return Error;
|
||||
|
@ -145,6 +147,7 @@ int test_packDouble2x32()
|
|||
double C = glm::packDouble2x32(B);
|
||||
glm::u32vec2 D = glm::unpackDouble2x32(C);
|
||||
Error += B == D ? 0 : 1;
|
||||
assert(!Error);
|
||||
}
|
||||
|
||||
return Error;
|
||||
|
|
Loading…
Add table
Reference in a new issue