mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2025-02-16 17:35:39 +00:00
fix compilation on linux
This commit is contained in:
parent
cdf5e4b2b2
commit
44fb32f2a9
|
@ -718,10 +718,10 @@ void CNew3D::DescendCullingNode(UINT32 addr)
|
||||||
}
|
}
|
||||||
|
|
||||||
float LODscale;
|
float LODscale;
|
||||||
if (m_nodeAttribs.currentDisableCulling)
|
if (m_nodeAttribs.currentDisableCulling) {
|
||||||
LODscale = FLT_MAX;
|
LODscale = std::numeric_limits<float>::max();
|
||||||
else
|
}
|
||||||
{
|
else {
|
||||||
float distance = std::hypot(m_modelMat.currentMatrix[12], m_modelMat.currentMatrix[13], m_modelMat.currentMatrix[14]);
|
float distance = std::hypot(m_modelMat.currentMatrix[12], m_modelMat.currentMatrix[13], m_modelMat.currentMatrix[14]);
|
||||||
LODscale = fBlendRadius * m_nodeAttribs.currentModelScale / distance;
|
LODscale = fBlendRadius * m_nodeAttribs.currentModelScale / distance;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue