diff --git a/src/osgViewer/Viewer.cpp b/src/osgViewer/Viewer.cpp index ebcc5f8a8..33695ac6a 100644 --- a/src/osgViewer/Viewer.cpp +++ b/src/osgViewer/Viewer.cpp @@ -541,6 +541,18 @@ void Viewer::realize() // initialize the global timer to be relative to the current time. osg::Timer::instance()->setStartTick(); + + getEventQueue()->setStartTick(osg::Timer::instance()->getStartTick());; + for(Contexts::iterator citr = contexts.begin(); + citr != contexts.end(); + ++citr) + { + osgViewer::GraphicsWindow* gw = dynamic_cast(*citr); + if (gw) + { + gw->getEventQueue()->setStartTick(osg::Timer::instance()->getStartTick()); + } + } }