UserContext: error return for CreateUserContext should be NULL

This commit is contained in:
Doug Binks 2022-03-31 19:21:42 +01:00
parent 9dfa1649ff
commit 3b003dd5f0
4 changed files with 4 additions and 4 deletions

View File

@ -1928,7 +1928,7 @@ _GLFWusercontext* _glfwCreateUserContextCocoa(_GLFWwindow* window)
return _glfwCreateUserContextOSMesa(window); return _glfwCreateUserContextOSMesa(window);
} }
return GLFW_FALSE; return NULL;
} }

View File

@ -698,5 +698,5 @@ _GLFWusercontext* _glfwCreateUserContextNull(_GLFWwindow* window)
return _glfwCreateUserContextOSMesa(window); return _glfwCreateUserContextOSMesa(window);
} }
return GLFW_FALSE; return NULL;
} }

View File

@ -1871,7 +1871,7 @@ _GLFWusercontext* _glfwPlatformCreateUserContext(_GLFWwindow* window)
return _glfwCreateUserContextOSMesa(window); return _glfwCreateUserContextOSMesa(window);
} }
return GLFW_FALSE; return NULL;
} }
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////

View File

@ -3262,7 +3262,7 @@ _GLFWusercontext* _glfwCreateUserContextX11(_GLFWwindow* window)
return _glfwCreateUserContextOSMesa(window); return _glfwCreateUserContextOSMesa(window);
} }
return GLFW_FALSE; return NULL;
} }