From c7efa81efe02cd3eeff5838fb12f9a001afd0cfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Garc=C3=ADa=20Li=C3=B1=C3=A1n?= Date: Wed, 30 Oct 2019 17:14:38 +0100 Subject: [PATCH] Only use effect schemes when the Compositor is enabled --- simgear/scene/material/Effect.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/simgear/scene/material/Effect.cxx b/simgear/scene/material/Effect.cxx index 6c486b0b..89b33a75 100644 --- a/simgear/scene/material/Effect.cxx +++ b/simgear/scene/material/Effect.cxx @@ -1479,7 +1479,8 @@ static SGMutex realizeTechniques_lock; bool Effect::realizeTechniques(const SGReaderWriterOptions* options) { SGGuard g(realizeTechniques_lock); - mergeSchemesFallbacks(this, options); + if (getPropertyRoot()->getBoolValue("/sim/version/compositor-support", false)) + mergeSchemesFallbacks(this, options); if (_isRealized) return true;