mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-22 05:45:38 +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;
|
||||
if (m_nodeAttribs.currentDisableCulling)
|
||||
LODscale = FLT_MAX;
|
||||
else
|
||||
{
|
||||
if (m_nodeAttribs.currentDisableCulling) {
|
||||
LODscale = std::numeric_limits<float>::max();
|
||||
}
|
||||
else {
|
||||
float distance = std::hypot(m_modelMat.currentMatrix[12], m_modelMat.currentMatrix[13], m_modelMat.currentMatrix[14]);
|
||||
LODscale = fBlendRadius * m_nodeAttribs.currentModelScale / distance;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue