From 8954964c324a1a55b2e6c57b428f1ca12d1ebd1f Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 19 Feb 2009 16:36:56 +0000 Subject: [PATCH] From Tanguy Fautre, This fixes the OSG crashes reported by http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2009-February/023499.html It's a one line change against OSG 2.8.0 (see line 196). I've already tested the change, and confirmed it\u2019s fixing the crashes described above." merged from svn trunk using: svn merge -r 9797:9798 http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunk/src/osg/State.cpp --- src/osg/State.cpp | 1 + 1 file changed, 1 insertion(+) 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();