You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just updated our code base from 0.9.8.x to 0.9.9.3 and a previously working code no longer compiles:
glm::dmat4 start = ...;
glm::dmat4 end = ...;
float t = "...";
glm::dmat4 res = glm::mix(start, end, t);
Fails in the
template<typename T, typename U>
struct compute_mix
{
GLM_FUNC_QUALIFIER static T call(T const& x, T const& y, U const& a)
{
GLM_STATIC_ASSERT(std::numeric_limits<U>::is_iec559 || GLM_CONFIG_UNRESTRICTED_GENTYPE, "'mix' only accept floating-point inputs for the interpolator a");
return static_cast<T>(static_cast<U>(x) + a * static_cast<U>(y - x));
}
};
with the second static_cast from the left, where it tries to cast a glm::dmat4 into a float
The text was updated successfully, but these errors were encountered:
alexanderbock
changed the title
Potential bug with mix?
Potential bug with mix in 0.9.9.3?
Dec 2, 2018
Just updated our code base from 0.9.8.x to 0.9.9.3 and a previously working code no longer compiles:
Fails in the
with the second
static_cast
from the left, where it tries to cast aglm::dmat4
into afloat
The text was updated successfully, but these errors were encountered: