From 296b859d37eef7fc7a798a0376b40ec6c3dce92e Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 19 Feb 2009 16:29:57 +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\u2019s a one line change against OSG 2.8.0 (see line 196). I\u2019ve already tested the change, and confirmed it\u2019s fixing the crashes described above." --- 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();