From Ali Botorabi, fixed the setDefault() fallback to properly handle the case
when no scene view light is requested.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user