Cocoa: Fix glfwGetCocoaWindow error return value

This commit is contained in:
Camilla Löwy 2024-02-20 12:50:59 +01:00
parent 8f2f766f0d
commit e28397bda0

View File

@ -2047,7 +2047,7 @@ GLFWAPI id glfwGetCocoaWindow(GLFWwindow* handle)
{
_glfwInputError(GLFW_PLATFORM_UNAVAILABLE,
"Cocoa: Platform not initialized");
return NULL;
return nil;
}
return window->ns.object;