Fixed build on GCC

This commit is contained in:
Christophe Riccio
2013-09-17 23:56:46 +02:00
parent 52d86dcc19
commit 08c95429fe
3 changed files with 3 additions and 4 deletions

View File

@@ -26,6 +26,7 @@
/// @author Christophe Riccio
///////////////////////////////////////////////////////////////////////////////////
#include "func_vector_relational.hpp"
#include "type_vec2.hpp"
#include "type_vec3.hpp"
#include "type_vec4.hpp"

View File

@@ -26,6 +26,7 @@
/// @author Christophe Riccio
///////////////////////////////////////////////////////////////////////////////////
#include "func_common.hpp"
#include "type_vec2.hpp"
#include "type_vec4.hpp"
#include "type_float.hpp"
@@ -308,7 +309,7 @@ namespace glm
if(k < T(0))
return vecType<T, P>(0);
else
return eta * I - (eta * dotValue + sqrt(k)) * N;
return eta * I - (eta * dotValue + std::sqrt(k)) * N;
}
}//namespace glm