diff --git a/glfw/nsgl_context.m b/glfw/nsgl_context.m index 2eadf9812..66dcdc6e7 100644 --- a/glfw/nsgl_context.m +++ b/glfw/nsgl_context.m @@ -271,7 +271,7 @@ bool _glfwCreateContextNSGL(_GLFWwindow* window, return false; } - NSOpenGLContext* share = NULL; + NSOpenGLContext* share = nil; if (ctxconfig->share) share = ctxconfig->share->context.nsgl.object; @@ -325,7 +325,7 @@ GLFWAPI id glfwGetNSGLContext(GLFWwindow* handle) if (window->context.client == GLFW_NO_API) { _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL); - return NULL; + return nil; } return window->context.nsgl.object;