Fixed compScale

master
Christophe Riccio ago%!(EXTRA string=10 years)
parent daaf86dcef
commit 79ceca230f
  1. 2
      glm/gtx/component_wise.inl

@ -79,7 +79,7 @@ namespace detail
{ {
floatType const Min = static_cast<floatType>(std::numeric_limits<T>::min()); floatType const Min = static_cast<floatType>(std::numeric_limits<T>::min());
floatType const Max = static_cast<floatType>(std::numeric_limits<T>::max()); floatType const Max = static_cast<floatType>(std::numeric_limits<T>::max());
return (vecType<floatType, P>(v) + Min) * (Max - Min) * static_cast<floatType>(2) - static_cast<floatType>(1); return vecType<T, P>((vecType<floatType, P>(v) + Min) * (Max - Min) * static_cast<floatType>(2) - static_cast<floatType>(1));
} }
}; };

Loading…
Cancel
Save