Merge pull request #107 from xorgy/fail-init-process-on-init-thread-fail
Fail InitProcess() when InitThread() fails.
This commit is contained in:
commit
8481679f4d
1 changed files with 6 additions and 1 deletions
|
|
@ -74,7 +74,12 @@ bool InitProcess()
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
InitThread();
|
if (! InitThread()) {
|
||||||
|
assert(0 && "InitProcess(): Failed to initialize thread");
|
||||||
|
|
||||||
|
glslang::ReleaseGlobalLock();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
glslang::ReleaseGlobalLock();
|
glslang::ReleaseGlobalLock();
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue