Update bundled glfw

This commit is contained in:
Kovid Goyal
2017-11-26 11:50:55 +05:30
parent 0296d1f9a2
commit fb41ecb2e5
12 changed files with 363 additions and 212 deletions

13
glfw/init.c vendored
View File

@@ -220,10 +220,17 @@ GLFWAPI int glfwInit(void)
glfwDefaultWindowHints();
if (!glfwUpdateGamepadMappings(_glfwDefaultMappings))
{
terminate();
return GLFW_FALSE;
int i;
for (i = 0; _glfwDefaultMappings[i]; i++)
{
if (!glfwUpdateGamepadMappings(_glfwDefaultMappings[i]))
{
terminate();
return GLFW_FALSE;
}
}
}
return GLFW_TRUE;