Introduction of IncrementalCompileOperation support to DatabasePager.
This commit is contained in:
@@ -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
|
||||
//----------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user