From ebde046ca4ea50dd6221a980d57db30570fe6218 Mon Sep 17 00:00:00 2001 From: Aaron Hamilton Date: Wed, 2 Dec 2015 07:39:26 +0000 Subject: [PATCH] InitProcess() should fail if InitThread() does. --- OGLCompilersDLL/InitializeDll.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/OGLCompilersDLL/InitializeDll.cpp b/OGLCompilersDLL/InitializeDll.cpp index f7f6af00..cc2b742e 100644 --- a/OGLCompilersDLL/InitializeDll.cpp +++ b/OGLCompilersDLL/InitializeDll.cpp @@ -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;