Fix termination on mapping parse error

This commit is contained in:
Camilla Löwy 2017-11-06 17:44:44 +01:00
parent 79e2433eb0
commit 71018b4ab5

View File

@ -219,7 +219,12 @@ GLFWAPI int glfwInit(void)
_glfw.timer.offset = _glfwPlatformGetTimerValue();
glfwDefaultWindowHints();
glfwUpdateGamepadMappings(_glfwDefaultMappings);
if (!glfwUpdateGamepadMappings(_glfwDefaultMappings))
{
terminate();
return GLFW_FALSE;
}
return GLFW_TRUE;
}