Fixed C++98 only build

This commit is contained in:
Christophe Riccio
2014-12-10 02:52:30 +01:00
parent 5331b67ad0
commit c556770a32
4 changed files with 11 additions and 4 deletions

View File

@@ -34,7 +34,9 @@
#include <glm/gtc/epsilon.hpp>
#include <glm/gtx/euler_angles.hpp>
#include <glm/vector_relational.hpp>
#include <type_traits>
#if GLM_HAS_TRIVIAL_QUERIES
# include <type_traits>
#endif
int myrand()
{
@@ -164,7 +166,7 @@ int test_mul()
// test both multiplication orders
glm::vec4 dst_pt_m3 = m3 * src_pt;
glm::vec4 dst_pt_dq3 = dq3 * src_pt;
glm::vec4 dst_pt_m3_i = glm::inverse(m3) * src_pt;
glm::vec4 dst_pt_dq3_i = src_pt * dq3;