Changed OsgCameraGroup to check for the Producer::RenderSurface::defaultWindowName

rather than the hard coded string
This commit is contained in:
Don BURNS 2004-02-26 18:33:06 +00:00
parent 57ed6ebb79
commit 078251a5f5

View File

@ -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());
}