InitProcess() should fail if InitThread() does.

This commit is contained in:
Aaron Hamilton 2015-12-02 07:39:26 +00:00
parent 1be8063e01
commit ebde046ca4

View File

@ -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;