Fixed bug related to clean up of text fonts.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user