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.
This commit is contained in:
Richard Harrison 2020-12-07 15:12:15 +01:00
parent f72ff7d2a2
commit aaaae0f567

View File

@ -1485,11 +1485,8 @@ void mergeSchemesFallbacks(Effect *effect, const SGReaderWriterOptions *options)
// Walk the techniques property tree, building techniques and // Walk the techniques property tree, building techniques and
// passes. // passes.
static std::mutex realizeTechniques_lock;
bool Effect::realizeTechniques(const SGReaderWriterOptions* options) bool Effect::realizeTechniques(const SGReaderWriterOptions* options)
{ {
std::lock_guard<std::mutex> g(realizeTechniques_lock);
if (_isRealized) if (_isRealized)
return true; return true;