Moved IncrementalCompileOperation out of include-src/osgUtil/GLObjectVisitor into their own files.

Added support to IncrementCompileOperation for controlling how much time is alloted to compilation and flush
This commit is contained in:
Robert Osfield
2009-03-12 15:21:04 +00:00
parent c3fc21fa82
commit 7b5f3ec92a
8 changed files with 641 additions and 477 deletions

View File

@@ -83,9 +83,19 @@ void RenderBin::removeRenderBinPrototype(RenderBin* proto)
RenderBinPrototypeList* list = renderBinPrototypeList();
if (list && proto)
{
RenderBinPrototypeList::iterator itr = list->find(proto->className());
if (itr != list->end()) list->erase(itr);
for(RenderBinPrototypeList::iterator itr = list->begin();
itr != list->end();
++itr)
{
if (itr->second == proto)
{
// osg::notify(osg::NOTICE)<<"Found protype, now erasing "<<itr->first<<std::endl;
list->erase(itr);
return;
}
}
}
// osg::notify(osg::NOTICE)<<"Not found protype"<<std::endl;
}
static bool s_defaultBinSortModeInitialized = false;