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,6 +1479,7 @@ static SGMutex realizeTechniques_lock;
bool Effect::realizeTechniques(const SGReaderWriterOptions* options)
{
SGGuard<SGMutex> g(realizeTechniques_lock);
if (getPropertyRoot()->getBoolValue("/sim/version/compositor-support", false))
mergeSchemesFallbacks(this, options);
if (_isRealized)