Twaaked comments

This commit is contained in:
Robert Osfield 2007-02-15 14:47:06 +00:00
parent ed01ae9387
commit 3eb833c8b8

View File

@ -853,6 +853,8 @@ void RenderStage::draw(osg::RenderInfo& renderInfo,RenderLeaf*& previous)
// syncronize the frame stamps
useState->setFrameStamp(const_cast<osg::FrameStamp*>(state.getFrameStamp()));
// map the DynamicObjectCount across to the new window
useState->setDynamicObjectCount(state.getDynamicObjectCount());
useState->setDynamicObjectRenderingCompletedCallback(state.getDynamicObjectRenderingCompletedCallback());
@ -882,6 +884,7 @@ void RenderStage::draw(osg::RenderInfo& renderInfo,RenderLeaf*& previous)
if (useState != &state)
{
// reset the local State's DynamicObjectCount
state.setDynamicObjectCount(useState->getDynamicObjectCount());
useState->setDynamicObjectRenderingCompletedCallback(0);
}