mirror of
https://github.com/g-truc/glm.git
synced 2024-11-26 18:24:35 +00:00
Fixed build
This commit is contained in:
parent
85811f3860
commit
26c395c78b
@ -525,17 +525,17 @@ static int test_inheritance()
|
|||||||
{
|
{
|
||||||
my_vec4()
|
my_vec4()
|
||||||
: glm::vec4(76.f, 75.f, 74.f, 73.f)
|
: glm::vec4(76.f, 75.f, 74.f, 73.f)
|
||||||
, data(82)
|
, member(82)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
int data;
|
int member;
|
||||||
};
|
};
|
||||||
|
|
||||||
int Error = 0;
|
int Error = 0;
|
||||||
|
|
||||||
my_vec4 v;
|
my_vec4 v;
|
||||||
|
|
||||||
Error += v.data == 82 ? 0 : 1;
|
Error += v.member == 82 ? 0 : 1;
|
||||||
Error += glm::epsilonEqual(v.x, 76.f, glm::epsilon<float>()) ? 0 : 1;
|
Error += glm::epsilonEqual(v.x, 76.f, glm::epsilon<float>()) ? 0 : 1;
|
||||||
Error += glm::epsilonEqual(v.y, 75.f, glm::epsilon<float>()) ? 0 : 1;
|
Error += glm::epsilonEqual(v.y, 75.f, glm::epsilon<float>()) ? 0 : 1;
|
||||||
Error += glm::epsilonEqual(v.z, 74.f, glm::epsilon<float>()) ? 0 : 1;
|
Error += glm::epsilonEqual(v.z, 74.f, glm::epsilon<float>()) ? 0 : 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user