projects
/
platform
/
upstream
/
glslang.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1be8063
)
InitProcess() should fail if InitThread() does.
author
Aaron Hamilton
<aaron@correspondwith.me>
Wed, 2 Dec 2015 07:39:26 +0000
(07:39 +0000)
committer
Aaron Hamilton
<aaron@correspondwith.me>
Wed, 2 Dec 2015 07:42:20 +0000
(07:42 +0000)
OGLCompilersDLL/InitializeDll.cpp
patch
|
blob
|
history
diff --git
a/OGLCompilersDLL/InitializeDll.cpp
b/OGLCompilersDLL/InitializeDll.cpp
index
f7f6af0
..
cc2b742
100644
(file)
--- 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;