Only use effect schemes when the Compositor is enabled

This commit is contained in:
Fernando García Liñán 2019-10-30 17:14:38 +01:00
parent 7d92698644
commit c7efa81efe

View File

@ -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;