diff --git a/src/osgUtil/SceneView.cpp b/src/osgUtil/SceneView.cpp index b79e671b0..f9715829c 100644 --- a/src/osgUtil/SceneView.cpp +++ b/src/osgUtil/SceneView.cpp @@ -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;