|
|
@ -122,6 +122,13 @@ namespace Resource
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return _sharedStateSetList.size();
|
|
|
|
return _sharedStateSetList.size();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void clearCache()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_listMutex);
|
|
|
|
|
|
|
|
_sharedTextureList.clear();
|
|
|
|
|
|
|
|
_sharedStateSetList.clear();
|
|
|
|
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/// Set texture filtering settings on textures contained in a FlipController.
|
|
|
|
/// Set texture filtering settings on textures contained in a FlipController.
|
|
|
@ -710,6 +717,15 @@ namespace Resource
|
|
|
|
mSharedStateMutex.unlock();
|
|
|
|
mSharedStateMutex.unlock();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void SceneManager::clearCache()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ResourceManager::clearCache();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mSharedStateMutex.lock();
|
|
|
|
|
|
|
|
mSharedStateManager->clearCache();
|
|
|
|
|
|
|
|
mSharedStateMutex.unlock();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void SceneManager::reportStats(unsigned int frameNumber, osg::Stats *stats) const
|
|
|
|
void SceneManager::reportStats(unsigned int frameNumber, osg::Stats *stats) const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
{
|
|
|
|
{
|
|
|
|