From 14e3b04274c0c21d858200b46b8c7335af49250c Mon Sep 17 00:00:00 2001 From: Gottfried Leibniz <37632412+gottfriedleibniz@users.noreply.github.com> Date: Mon, 27 Dec 2021 21:09:01 -0400 Subject: [PATCH] fix hsvColor types --- glm/gtx/color_space.inl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/glm/gtx/color_space.inl b/glm/gtx/color_space.inl index f698afe1..0a7059fa 100644 --- a/glm/gtx/color_space.inl +++ b/glm/gtx/color_space.inl @@ -63,9 +63,9 @@ namespace glm GLM_FUNC_QUALIFIER vec<3, T, Q> hsvColor(const vec<3, T, Q>& rgbColor) { vec<3, T, Q> hsv = rgbColor; - float Min = min(min(rgbColor.r, rgbColor.g), rgbColor.b); - float Max = max(max(rgbColor.r, rgbColor.g), rgbColor.b); - float Delta = Max - Min; + T Min = min(min(rgbColor.r, rgbColor.g), rgbColor.b); + T Max = max(max(rgbColor.r, rgbColor.g), rgbColor.b); + T Delta = Max - Min; hsv.z = Max;