diff --git a/src/osgUtil/RenderStageLighting.cpp b/src/osgUtil/RenderStageLighting.cpp index e21cce7c9..96def9296 100644 --- a/src/osgUtil/RenderStageLighting.cpp +++ b/src/osgUtil/RenderStageLighting.cpp @@ -50,6 +50,9 @@ void RenderStageLighting::draw(osg::State& state,RenderLeaf*& previous) // apply the light source. litr->first->apply(state); + + // tell state about. + state.haveAppliedAttribute(litr->first); }