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

@@ -1006,6 +1006,7 @@ GraphicsWindowWin32::GraphicsWindowWin32( osg::GraphicsContext::Traits* traits )
{
setState( new osg::State );
getState()->setContextID( osg::GraphicsContext::createNewContextID() );
getState()->setGraphicsContext(this);
}
}