Browse Source

Tentative fix GTX_easing on Apple Clang

Christophe Riccio 7 years ago
parent
commit
ef615c8d6e
1 changed files with 5 additions and 1 deletions
  1. 5 1
      glm/gtx/easing.inl

+ 5 - 1
glm/gtx/easing.inl

@@ -246,7 +246,11 @@ namespace glm{
 		if(a <= zero<genType>())
 		if(a <= zero<genType>())
 			return a;
 			return a;
 		else
 		else
-			return glm::pow<genType>(static_cast<genType>(2), static_cast<genType>(10) * (a - one<genType>()));
+		{
+			genType const Complementary = a - one<genType>();
+			genType const Two = static_cast<genType>(2);
+			return glm::pow<genType>(Two, Complementary * static_cast<genType>(10));
+		}
 	}
 	}
 
 
 	template <typename genType>
 	template <typename genType>