mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-08 19:40:06 +00:00
InitProcess() should fail if InitThread() does.
This commit is contained in:
parent
1be8063e01
commit
ebde046ca4
@ -74,7 +74,12 @@ bool InitProcess()
|
||||
return false;
|
||||
}
|
||||
|
||||
InitThread();
|
||||
if (! InitThread()) {
|
||||
assert(0 && "InitProcess(): Failed to initialize thread");
|
||||
|
||||
glslang::ReleaseGlobalLock();
|
||||
return false;
|
||||
}
|
||||
|
||||
glslang::ReleaseGlobalLock();
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user