Reset: hook to clear the effects cache.
This commit is contained in:
parent
053e761d8f
commit
26d9256ee9
@ -176,6 +176,8 @@ Effect* makeEffect(SGPropertyNode* prop,
|
||||
bool makeParametersFromStateSet(SGPropertyNode* paramRoot,
|
||||
const osg::StateSet* ss);
|
||||
|
||||
void clearEffectCache();
|
||||
|
||||
namespace effect
|
||||
{
|
||||
/**
|
||||
|
@ -270,4 +270,10 @@ Effect* makeEffect(SGPropertyNode* prop,
|
||||
return effect.release();
|
||||
}
|
||||
|
||||
void clearEffectCache()
|
||||
{
|
||||
OpenThreads::ScopedLock<OpenThreads::ReentrantMutex> lock(effectMutex);
|
||||
effectMap.clear();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user