Support aligned *vec* even when SIMD isn't enabled

This commit is contained in:
Christophe Riccio
2016-06-02 00:33:55 +02:00
parent 416632ea37
commit fd4ada5843
5 changed files with 124 additions and 67 deletions

View File

@@ -347,13 +347,6 @@ int test_vec4_size()
Error += glm::vec4().length() == 4 ? 0 : 1;
Error += glm::dvec4().length() == 4 ? 0 : 1;
struct my_struct
{
glm::uint32 a;
glm::vec4 b;
};
GLM_STATIC_ASSERT(sizeof(my_struct) == sizeof(glm::uint32) + sizeof(glm::vec4), "glm::vec4 alignment is not correct");
return Error;
}