From ff3e94bd7523e0b158ec145a3fb16153772d8a6c Mon Sep 17 00:00:00 2001 From: Vesa Date: Sat, 26 Apr 2014 16:16:38 +0300 Subject: [PATCH] Fix a typo in interpolation.h --- include/interpolation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/interpolation.h b/include/interpolation.h index e58be7be3..67ff0a3a5 100644 --- a/include/interpolation.h +++ b/include/interpolation.h @@ -81,7 +81,7 @@ inline float cosinusInterpolate( float v0, float v1, float x ) { const float f = ( 1.0f - cosf( x * F_PI ) ) * 0.5f; #ifdef FP_FAST_FMAF - return fmaf( x, v1-v0, v0 ); + return fmaf( f, v1-v0, v0 ); #else return f * (v1-v0) + v0; #endif