mark the nodes without valid distances set

This commit is contained in:
Ian Curtis 2017-02-05 15:36:05 +00:00
parent c82dc55485
commit 144125a62e
2 changed files with 4 additions and 1 deletions

View file

@ -105,7 +105,7 @@ struct Viewport
int priority;
};
enum class Clip { INSIDE, OUTSIDE, INTERCEPT };
enum class Clip { INSIDE, OUTSIDE, INTERCEPT, NOT_SET };
class NodeAttributes
{

View file

@ -446,6 +446,9 @@ void CNew3D::DescendCullingNode(UINT32 addr)
m_nodeAttribs.currentClipStatus = ClipBox(bbox, m_planes);
}
else {
m_nodeAttribs.currentClipStatus = Clip::NOT_SET;
}
}
if (m_nodeAttribs.currentClipStatus != Clip::OUTSIDE) {