From Ali Botorabi, fixed the setDefault() fallback to properly handle the case

when no scene view light is requested.
This commit is contained in:
Robert Osfield
2005-12-01 14:37:15 +00:00
parent 1c9f1b8eb1
commit 066760738b

View File

@@ -150,7 +150,11 @@ void SceneView::setDefaults(unsigned int options)
_globalStateSet->setMode(GL_LIGHTING, osg::StateAttribute::ON);
}
else
{
_lightingMode = NO_SCENEVIEW_LIGHT;
}
_state = new State;
_rendergraph = new StateGraph;