diff --git a/src/osgGLUT/Viewer.cpp b/src/osgGLUT/Viewer.cpp index 28c371844..a1b781163 100644 --- a/src/osgGLUT/Viewer.cpp +++ b/src/osgGLUT/Viewer.cpp @@ -1108,7 +1108,7 @@ void Viewer::keyboard(unsigned char key, int x, int y) case 'l' : lighting = 1 - lighting ; if( lighting ) - sceneView->getGlobalState()->setMode(GL_LIGHTING,osg::StateAttribute::ON); + sceneView->getGlobalState()->setMode(GL_LIGHTING,osg::StateAttribute::OVERRIDE_ON); else sceneView->getGlobalState()->setMode(GL_LIGHTING,osg::StateAttribute::OVERRIDE_OFF); break;