Changed OsgCameraGroup to check for the Producer::RenderSurface::defaultWindowName
rather than the hard coded string
This commit is contained in:
parent
57ed6ebb79
commit
078251a5f5
@ -115,7 +115,7 @@ OsgCameraGroup::OsgCameraGroup(osg::ArgumentParser& arguments):
|
||||
{
|
||||
Producer::Camera *cam = _cfg->getCamera(i);
|
||||
Producer::RenderSurface *rs = cam->getRenderSurface();
|
||||
if (rs->getWindowName()==" *** RenderSurface *** ")
|
||||
if (rs->getWindowName()== Producer::RenderSurface::defaultWindowName )
|
||||
{
|
||||
rs->setWindowName(arguments.getApplicationName());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user