Skip to content
Snippets Groups Projects
Commit 71018b4a authored by Camilla Löwy's avatar Camilla Löwy
Browse files

Fix termination on mapping parse error

parent 79e2433e
Branches
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment