Added realize of new graphics contexts to handle new views being added with
unrealized windows
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user