From 3b003dd5f03dad665783620bb650c01676d99963 Mon Sep 17 00:00:00 2001 From: Doug Binks Date: Thu, 31 Mar 2022 19:21:42 +0100 Subject: [PATCH] UserContext: error return for CreateUserContext should be NULL --- src/cocoa_window.m | 2 +- src/null_window.c | 2 +- src/wl_window.c | 2 +- src/x11_window.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cocoa_window.m b/src/cocoa_window.m index d85fac1e..521f8179 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -1928,7 +1928,7 @@ _GLFWusercontext* _glfwCreateUserContextCocoa(_GLFWwindow* window) return _glfwCreateUserContextOSMesa(window); } - return GLFW_FALSE; + return NULL; } diff --git a/src/null_window.c b/src/null_window.c index cb54fa68..270c8b2d 100644 --- a/src/null_window.c +++ b/src/null_window.c @@ -698,5 +698,5 @@ _GLFWusercontext* _glfwCreateUserContextNull(_GLFWwindow* window) return _glfwCreateUserContextOSMesa(window); } - return GLFW_FALSE; + return NULL; } diff --git a/src/wl_window.c b/src/wl_window.c index dc393bac..165a1bd4 100644 --- a/src/wl_window.c +++ b/src/wl_window.c @@ -1871,7 +1871,7 @@ _GLFWusercontext* _glfwPlatformCreateUserContext(_GLFWwindow* window) return _glfwCreateUserContextOSMesa(window); } - return GLFW_FALSE; + return NULL; } ////////////////////////////////////////////////////////////////////////// diff --git a/src/x11_window.c b/src/x11_window.c index 1506125a..78e2cb83 100644 --- a/src/x11_window.c +++ b/src/x11_window.c @@ -3262,7 +3262,7 @@ _GLFWusercontext* _glfwCreateUserContextX11(_GLFWwindow* window) return _glfwCreateUserContextOSMesa(window); } - return GLFW_FALSE; + return NULL; }