Added realize of new graphics contexts to handle new views being added with

unrealized windows
This commit is contained in:
Robert Osfield
2008-06-28 16:59:26 +00:00
parent fec2a8fabe
commit 8820d0bb1d
2 changed files with 35 additions and 0 deletions

View File

@@ -372,6 +372,12 @@ void ViewerBase::startThreading()
{
osg::GraphicsContext* gc = (*citr);
if (!gc->isRealized())
{
osg::notify(osg::INFO)<<"ViewerBase::startThreading() : Realizng window "<<gc<<std::endl;
gc->realize();
}
gc->getState()->setDynamicObjectRenderingCompletedCallback(_endDynamicDrawBlock.get());
// create the a graphics thread for this context