Clean up code test for branch compatibility on all platforms
This commit is contained in:
@@ -28,7 +28,7 @@ int test_vec2_swizzle()
|
||||
{
|
||||
int Error = 0;
|
||||
|
||||
glm::ivec2 A(1, 2);
|
||||
glm::ivec2 A(1, 2);
|
||||
glm::ivec2 B = A.xy();
|
||||
glm::ivec2 C(0);
|
||||
C.xy() = B.xy();
|
||||
@@ -43,7 +43,7 @@ int test_vec3_swizzle()
|
||||
{
|
||||
int Error = 0;
|
||||
|
||||
glm::ivec3 A(1, 2, 3);
|
||||
glm::ivec3 A(1, 2, 3);
|
||||
glm::ivec3 B = A.xyz();
|
||||
glm::ivec3 C(0);
|
||||
C.xyz() = B.xyz();
|
||||
@@ -58,7 +58,7 @@ int test_vec4_swizzle()
|
||||
{
|
||||
int Error = 0;
|
||||
|
||||
glm::ivec4 A(1, 2, 3, 4);
|
||||
glm::ivec4 A(1, 2, 3, 4);
|
||||
glm::ivec4 B = A.xyzw();
|
||||
glm::ivec4 C(0);
|
||||
C.xyzw() = B.xyzw();
|
||||
@@ -71,12 +71,12 @@ int test_vec4_swizzle()
|
||||
|
||||
int main()
|
||||
{
|
||||
int Error = 0;
|
||||
|
||||
int Error = 0;
|
||||
|
||||
Error += test_vec2_swizzle();
|
||||
Error += test_vec3_swizzle();
|
||||
Error += test_vec4_swizzle();
|
||||
|
||||
Error += test_vec4_swizzle();
|
||||
|
||||
return Error;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user