mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-29 04:20:29 +00:00
Hold a ref to the intersection visitor's view if possible
This commit is contained in:
parent
59bf100907
commit
db00d47ca2
@ -143,7 +143,7 @@ ViewData* QuadTreeNode::getView(osg::NodeVisitor &nv)
|
|||||||
}
|
}
|
||||||
else // INTERSECTION_VISITOR
|
else // INTERSECTION_VISITOR
|
||||||
{
|
{
|
||||||
return mViewDataMap->getViewData(&nv, false);
|
return mViewDataMap->getViewData(&nv, (nv.referenceCount() > 0)); // if no referenceCount, the visitor was allocated on the stack
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user