mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-04 04:56:57 +00:00
Fix glslang global lock to not alloc each time!
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user