mirror of
https://github.com/gwm17/glfw.git
synced 2025-01-30 19:08:51 -05:00
Fix termination on mapping parse error
This commit is contained in:
parent
79e2433eb0
commit
71018b4ab5
|
@ -219,7 +219,12 @@ GLFWAPI int glfwInit(void)
|
||||||
_glfw.timer.offset = _glfwPlatformGetTimerValue();
|
_glfw.timer.offset = _glfwPlatformGetTimerValue();
|
||||||
|
|
||||||
glfwDefaultWindowHints();
|
glfwDefaultWindowHints();
|
||||||
glfwUpdateGamepadMappings(_glfwDefaultMappings);
|
|
||||||
|
if (!glfwUpdateGamepadMappings(_glfwDefaultMappings))
|
||||||
|
{
|
||||||
|
terminate();
|
||||||
|
return GLFW_FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
return GLFW_TRUE;
|
return GLFW_TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user