Added getState()->setGraphicsContext(this); to the various GrpahicsWindow implementations

This commit is contained in:
Robert Osfield
2007-02-14 17:28:33 +00:00
parent e1fc31f256
commit f82c34ff11
3 changed files with 3 additions and 0 deletions

View File

@@ -44,6 +44,7 @@ class GraphicsWindowCarbon : public osgViewer::GraphicsWindow
{
setState( new osg::State );
getState()->setContextID( osg::GraphicsContext::createNewContextID() );
getState()->setGraphicsContext(this);
}
}

View File

@@ -56,6 +56,7 @@ class GraphicsWindowX11 : public osgViewer::GraphicsWindow
{
setState( new osg::State );
getState()->setContextID( osg::GraphicsContext::createNewContextID() );
getState()->setGraphicsContext(this);
}
}