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;