diff --git a/src/osg/State.cpp b/src/osg/State.cpp index f1e678f94..6188a80f1 100644 --- a/src/osg/State.cpp +++ b/src/osg/State.cpp @@ -193,6 +193,7 @@ void State::reset() ++apitr) { (*apitr)->resetAppliedUniforms(); + (*apitr)->removeObserver(this); } _appliedProgramObjectSet.clear();