util: use glm_clamp_zo to clamp between 0 and 1

This commit is contained in:
Recep Aslantas
2020-03-19 12:37:52 +03:00
parent a392ac3012
commit 686deb8eb1

View File

@@ -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));
}
/*!