From ef615c8d6e1db6be977e0ac3473e95124d6f5ba4 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Tue, 8 May 2018 20:57:34 +0200 Subject: [PATCH] Tentative fix GTX_easing on Apple Clang --- glm/gtx/easing.inl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/glm/gtx/easing.inl b/glm/gtx/easing.inl index b1d00856..54bb7790 100644 --- a/glm/gtx/easing.inl +++ b/glm/gtx/easing.inl @@ -246,7 +246,11 @@ namespace glm{ if(a <= zero()) return a; else - return glm::pow(static_cast(2), static_cast(10) * (a - one())); + { + genType const Complementary = a - one(); + genType const Two = static_cast(2); + return glm::pow(Two, Complementary * static_cast(10)); + } } template