From e91be57ff35195bc710f44d20cb8286943f4e383 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Sun, 21 Jul 2019 20:48:01 -0700 Subject: [PATCH] Cleanup. --- tools/texturev/texturev.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/texturev/texturev.cpp b/tools/texturev/texturev.cpp index 914835e9d..df5a3ccb7 100644 --- a/tools/texturev/texturev.cpp +++ b/tools/texturev/texturev.cpp @@ -1073,7 +1073,7 @@ struct InterpolatorT { from = _value; to = _value; - duration = 0.0; + duration = 0.0f; offset = bx::getHPCounter(); } @@ -1095,7 +1095,7 @@ struct InterpolatorT const double freq = double(bx::getHPFrequency() ); int64_t now = bx::getHPCounter(); float time = (float)(double(now - offset) / freq); - float lerp = duration != 0 ? bx::clamp(time, 0.0f, duration) / duration : 0.0f; + float lerp = duration != 0.0f ? bx::clamp(time, 0.0f, duration) / duration : 0.0f; return lerpT(from, to, easeT(lerp) ); }