Browse Source

compilation fix

Signed-off-by: Sergey Krivohatskiy <[email protected]>
Sergey Krivohatskiy 4 years ago
parent
commit
b5d4757580
1 changed files with 2 additions and 1 deletions
  1. 2 1
      test/gtx/gtx_matrix_interpolation.cpp

+ 2 - 1
test/gtx/gtx_matrix_interpolation.cpp

@@ -5,6 +5,7 @@
 
 #include <iostream>
 #include <limits>
+#include <math.h>
 
 
 static int test_axisAngle()
@@ -40,7 +41,7 @@ static int test_axisAngle()
 template <class T>
 int testForAxisAngle(glm::vec<3, T, glm::defaultp> const axisTrue, T const angleTrue)
 {
-    T const eps = sqrt(std::numeric_limits<T>::epsilon());
+    T const eps = std::sqrt(std::numeric_limits<T>::epsilon());
 
     glm::mat<4, 4, T, glm::defaultp> const matTrue = glm::axisAngleMatrix(axisTrue, angleTrue);