From aaaae0f567b76f2cbb17837fc842e1522093814c Mon Sep 17 00:00:00 2001 From: Richard Harrison Date: Mon, 7 Dec 2020 15:12:15 +0100 Subject: [PATCH] Remove mutex lock on realizeTechniques This was causing a deadlock - and I can't quite remember what problem it was intended to solve so it is best to remove it. --- simgear/scene/material/Effect.cxx | 3 --- 1 file changed, 3 deletions(-) diff --git a/simgear/scene/material/Effect.cxx b/simgear/scene/material/Effect.cxx index ceb9f137..e5b3f5fa 100644 --- a/simgear/scene/material/Effect.cxx +++ b/simgear/scene/material/Effect.cxx @@ -1485,11 +1485,8 @@ void mergeSchemesFallbacks(Effect *effect, const SGReaderWriterOptions *options) // Walk the techniques property tree, building techniques and // passes. -static std::mutex realizeTechniques_lock; bool Effect::realizeTechniques(const SGReaderWriterOptions* options) { - std::lock_guard g(realizeTechniques_lock); - if (_isRealized) return true;