Added a call to the CullSetting::readCommnadLine(..) to make sure the --NO_CULLING and --VIEW_FRUSTUM, --VIEW_FRUSTUM_SIDES command line parameters are honoured

This commit is contained in:
Robert Osfield
2019-03-25 12:42:28 +00:00
parent a8e78fde99
commit 0b5cb65cdd

View File

@@ -105,6 +105,8 @@ Viewer::Viewer(osg::ArgumentParser& arguments)
osg::DisplaySettings::instance()->readCommandLine(arguments);
osgDB::readCommandLine(arguments);
getCamera()->readCommandLine(arguments);
std::string colorStr;
while (arguments.read("--clear-color",colorStr))
{