diff --git a/src/osgUtil/RenderStage.cpp b/src/osgUtil/RenderStage.cpp index 699c7fa19..1cdcecf34 100644 --- a/src/osgUtil/RenderStage.cpp +++ b/src/osgUtil/RenderStage.cpp @@ -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(state.getFrameStamp())); + if (!useThread) useContext->makeCurrent(); }