Fixed CUDA compiler error in type_vec4.inl #504

This commit is contained in:
Christophe Riccio 2016-05-04 16:35:57 +02:00
parent 1f71f6fb3a
commit affd5f3ba0
7 changed files with 13 additions and 6 deletions

View File

@ -734,6 +734,6 @@ namespace detail
}
}//namespace glm
#if GLM_ARCH != GLM_FORCE_PURE
#if GLM_ARCH != GLM_ARCH_PURE
# include "func_common_simd.inl"
#endif

View File

@ -171,6 +171,6 @@ namespace detail
}
}//namespace glm
#if GLM_ARCH != GLM_FORCE_PURE
#if GLM_ARCH != GLM_ARCH_PURE
# include "func_geometric_simd.inl"
#endif

View File

@ -359,7 +359,7 @@ namespace detail
}
}//namespace glm
#if GLM_ARCH != GLM_FORCE_PURE
#if GLM_ARCH != GLM_ARCH_PURE
# include "func_integer_simd.inl"
#endif

View File

@ -279,7 +279,7 @@ namespace detail
}
}//namespace glm
#if GLM_ARCH != GLM_FORCE_PURE
#if GLM_ARCH != GLM_ARCH_PURE
# include "func_matrix_simd.inl"
#endif

View File

@ -759,6 +759,6 @@ namespace detail
}
}//namespace glm
#if GLM_ARCH != GLM_FORCE_PURE
#if GLM_ARCH != GLM_ARCH_PURE
# include "type_mat4x4_simd.inl"
#endif

View File

@ -1180,6 +1180,6 @@ namespace glm
}
}//namespace glm
#if GLM_ARCH != GLM_FORCE_PURE
#if GLM_ARCH != GLM_ARCH_PURE
# include "type_vec4_simd.inl"
#endif

View File

@ -113,6 +113,13 @@ int test_vec3_ctor()
return Error;
}
float foo()
{
glm::vec3 bar = glm::vec3(0.0f, 1.0f, 1.0f);
return glm::length(bar);
}
int test_vec3_operators()
{
int Error = 0;