Added CameraNode::releaseGLObejcts() to help in clean up, and changed the

ordering in SceneView::flushDeleteGLObjects() so that fbo's are deleted
before any texture objects they use are deleted.
This commit is contained in:
Robert Osfield
2005-12-08 10:06:57 +00:00
parent b835ec9ee9
commit 53ee0ce3ec
5 changed files with 21 additions and 4 deletions

View File

@@ -741,6 +741,7 @@ void OsgCameraGroup::cleanup_frame()
++itr)
{
(*itr)->getSceneView()->releaseAllGLObjects();
(*itr)->getSceneView()->setRenderStage(0);
(*itr)->setCleanUpOnNextFrame(true);
}