Fixed condition to enable half vector specialization

This commit is contained in:
Christophe Riccio
2011-10-22 22:18:16 +01:00
parent 146eacb067
commit 66a8720bc0
4 changed files with 9 additions and 6 deletions

View File

@@ -11,7 +11,7 @@
//#define GLM_FORCE_PURE
#define GLM_MESSAGES
#define GLM_SWIZZLE
//#define GLM_FORCE_CXX98
#define GLM_FORCE_CXX98
#include <glm/glm.hpp>
int test_vec2_swizzle()
@@ -24,6 +24,7 @@ int test_vec2_swizzle()
C.xy() = B.xy();
Error += A == B ? 0 : 1;
Error += A == C ? 0 : 1;
return Error;
}
@@ -38,6 +39,7 @@ int test_vec3_swizzle()
C.xyz() = B.xyz();
Error += A == B ? 0 : 1;
Error += A == C ? 0 : 1;
return Error;
}
@@ -52,6 +54,7 @@ int test_vec4_swizzle()
C.xyzw() = B.xyzw();
Error += A == B ? 0 : 1;
Error += A == C ? 0 : 1;
return Error;
}