@ -205,12 +205,13 @@ GLFWAPI int glfwInit(void)
return GLFW_FALSE;
}
if (!_glfwPlatformCreateMutex(&_glfw.errorLock))
if (!_glfwPlatformCreateTls(&_glfw.errorSlot))
if (!_glfwPlatformCreateTls(&_glfw.contextSlot))
if (!_glfwPlatformCreateMutex(&_glfw.errorLock) ||
!_glfwPlatformCreateTls(&_glfw.errorSlot) ||
!_glfwPlatformCreateTls(&_glfw.contextSlot))
{
terminate();
_glfwPlatformSetTls(&_glfw.errorSlot, &_glfwMainThreadError);