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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user