Added setting of the FrameStamp on the RenderStage's local GraphicsContext to

keep it in sync with the calling graphics context.
This commit is contained in:
Robert Osfield
2006-04-17 13:25:33 +00:00
parent 453243ed8c
commit fb35d02c33

View File

@@ -742,9 +742,11 @@ void RenderStage::draw(osg::State& state,RenderLeaf*& previous)
useState = _graphicsContext->getState();
useContext = _graphicsContext.get();
useThread = useContext->getGraphicsThread();
// syncronize the frame stamps
useState->setFrameStamp(const_cast<osg::FrameStamp*>(state.getFrameStamp()));
if (!useThread) useContext->makeCurrent();
}