Fixed warning of RenderLeaf's having multiple references in CullVisitor::createOrReuseRenderLeaf() but forcing a clean up of the StateGraph at the end of RenderStage::draw()
This commit is contained in:
parent
f8dcb20437
commit
e5ff90e455
@ -1314,6 +1314,9 @@ void RenderStage::draw(osg::RenderInfo& renderInfo,RenderLeaf*& previous)
|
||||
|
||||
// pop the render stages camera.
|
||||
if (_camera.valid()) renderInfo.popCamera();
|
||||
|
||||
// clean up state graph to make sure RenderLeaf etc, can be reused
|
||||
if (_rootStateGraph.valid()) _rootStateGraph->clean();
|
||||
}
|
||||
|
||||
void RenderStage::drawImplementation(osg::RenderInfo& renderInfo,RenderLeaf*& previous)
|
||||
|
Loading…
Reference in New Issue
Block a user