This commit is contained in:
nee-wom 2025-12-12 05:19:24 +00:00 committed by GitHub
commit 15719f8f8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -942,6 +942,8 @@ GLFWbool _glfwCreateWindowCocoa(_GLFWwindow* window,
// need to get the layer for EGL window surface creation.
[window->ns.view setWantsLayer:YES];
window->ns.layer = [window->ns.view layer];
if (window->ns.scaleFramebuffer && window->ns.layer)
[window->ns.layer setContentsScale:[window->ns.object backingScaleFactor]];
if (!_glfwInitEGL())
return GLFW_FALSE;