Only use effect schemes when the Compositor is enabled
This commit is contained in:
parent
7d92698644
commit
c7efa81efe
@ -1479,7 +1479,8 @@ static SGMutex realizeTechniques_lock;
|
|||||||
bool Effect::realizeTechniques(const SGReaderWriterOptions* options)
|
bool Effect::realizeTechniques(const SGReaderWriterOptions* options)
|
||||||
{
|
{
|
||||||
SGGuard<SGMutex> g(realizeTechniques_lock);
|
SGGuard<SGMutex> g(realizeTechniques_lock);
|
||||||
mergeSchemesFallbacks(this, options);
|
if (getPropertyRoot()->getBoolValue("/sim/version/compositor-support", false))
|
||||||
|
mergeSchemesFallbacks(this, options);
|
||||||
|
|
||||||
if (_isRealized)
|
if (_isRealized)
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user