From fb35d02c33fe70c175bc62f14974bea0aae02fbd Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 17 Apr 2006 13:25:33 +0000 Subject: [PATCH] Added setting of the FrameStamp on the RenderStage's local GraphicsContext to keep it in sync with the calling graphics context. --- src/osgUtil/RenderStage.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); }