Fixed bug related to clean up of text fonts.

This commit is contained in:
Robert Osfield
2006-10-03 11:14:34 +00:00
parent 392232ec06
commit 7c6b528588
10 changed files with 59 additions and 18 deletions

View File

@@ -979,6 +979,15 @@ void Viewer::cleanup_frame()
++itr)
{
(*itr)->releaseGLObjects();
ViewerEventHandler* veh = dynamic_cast<ViewerEventHandler*>(itr->get());
if (veh)
{
// switch off stats so it doesn't try to redraw them.
veh->setFrameStatsMode(ViewerEventHandler::NO_STATS);
veh->setDisplayHelp(false);
veh->setWriteImageOnNextFrame(false);
}
}
OsgCameraGroup::cleanup_frame();