Cocoa: Cleanup

From upstream: bd452016be.
This commit is contained in:
Luflosi 2019-11-21 18:30:03 +01:00
parent 7cbf8c63bc
commit 6feb906953
No known key found for this signature in database
GPG Key ID: 4E41E29EDCC345D0

View File

@ -271,7 +271,7 @@ bool _glfwCreateContextNSGL(_GLFWwindow* window,
return false; return false;
} }
NSOpenGLContext* share = NULL; NSOpenGLContext* share = nil;
if (ctxconfig->share) if (ctxconfig->share)
share = ctxconfig->share->context.nsgl.object; share = ctxconfig->share->context.nsgl.object;
@ -325,7 +325,7 @@ GLFWAPI id glfwGetNSGLContext(GLFWwindow* handle)
if (window->context.client == GLFW_NO_API) if (window->context.client == GLFW_NO_API)
{ {
_glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL); _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL);
return NULL; return nil;
} }
return window->context.nsgl.object; return window->context.nsgl.object;