Improved handling of clean up of osg::Program/osg::Shader on closing of a graphis context.

This commit is contained in:
Robert Osfield
2006-01-16 17:05:17 +00:00
parent 0c9ab51e09
commit 93a2c3d011
5 changed files with 35 additions and 5 deletions

View File

@@ -736,6 +736,9 @@ void SceneView::releaseAllGLObjects()
if (!_camera) return;
_camera->releaseGLObjects(_state.get());
// we need to reset State as it keeps handles to Program objects.
if (_state.valid()) _state->reset();
}