From 686deb8eb16b194ebb8f57d2b009f62f6ce7825e Mon Sep 17 00:00:00 2001 From: Recep Aslantas Date: Thu, 19 Mar 2020 12:37:52 +0300 Subject: [PATCH] util: use glm_clamp_zo to clamp between 0 and 1 --- include/cglm/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cglm/util.h b/include/cglm/util.h index 66fcee0..a121a5c 100644 --- a/include/cglm/util.h +++ b/include/cglm/util.h @@ -322,7 +322,7 @@ glm_percent(float from, float to, float current) { CGLM_INLINE float glm_percentc(float from, float to, float current) { - return glm_clamp(glm_percent(from, to, current), 0.0f, 1.0f); + return glm_clamp_zo(glm_percent(from, to, current)); } /*!