Fix glslang global lock to not alloc each time!

This commit is contained in:
baldurk committed 2026-10-26 13:14:10 +00:00
1 parent 5867c46f99
commit 0ae1472da8
1 file changed
+1 -1
@@ -85,7 +85,7 @@ int NumberOfClients = 0;
#ifndef DISABLE_THREAD_SUPPORT
std::mutex &init_lock()
{
std::mutex *lock = new std::mutex;
static std::mutex *lock = new std::mutex;
return *lock;
}
#endif