Use a global mutex to avoid race-conditions in shader compiler
Merge pull request #146 from tomaka/global-compilation-lock

Use a global mutex to avoid race-conditions in shader compiler