Browse Source

Fixed VC warning

Christophe Riccio 7 years ago
parent
commit
bb98016c33
1 changed files with 2 additions and 1 deletions
  1. 2 1
      test/core/core_force_pure.cpp

+ 2 - 1
test/core/core_force_pure.cpp

@@ -341,9 +341,10 @@ int test_vec4_swizzle_partial()
 {
 	int Error = 0;
 
+#	if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
+
 	glm::ivec4 A(1, 2, 3, 4);
 
-#	if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
 	{
 		glm::ivec4 B(A.xy, A.zw);
 		Error += A == B ? 0 : 1;