Introduction of IncrementalCompileOperation support to DatabasePager.

This commit is contained in:
Robert Osfield
2010-10-14 18:16:03 +00:00
parent 00fe3c0417
commit 6ed74470b2
9 changed files with 141 additions and 35 deletions

View File

@@ -108,7 +108,7 @@ void SharedStateManager::apply(osg::Geode& geode)
}
}
bool SharedStateManager::isShared(osg::StateSet *ss)
bool SharedStateManager::isShared(osg::StateSet* ss)
{
if (shareStateSet(ss->getDataVariance()))
{
@@ -119,6 +119,17 @@ bool SharedStateManager::isShared(osg::StateSet *ss)
return false;
}
bool SharedStateManager::isShared(osg::Texture* texture)
{
if (shareTexture(texture->getDataVariance()))
{
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_listMutex);
return find(texture) != 0;
}
else
return false;
}
//----------------------------------------------------------------
// SharedStateManager::find
//----------------------------------------------------------------