mirror of
https://github.com/glfw/glfw.git
synced 2025-07-27 01:50:02 +00:00
Merge 168d72fc11
into 506c11ba43
This commit is contained in:
commit
54d64ccb85
@ -942,6 +942,8 @@ GLFWbool _glfwCreateWindowCocoa(_GLFWwindow* window,
|
|||||||
// need to get the layer for EGL window surface creation.
|
// need to get the layer for EGL window surface creation.
|
||||||
[window->ns.view setWantsLayer:YES];
|
[window->ns.view setWantsLayer:YES];
|
||||||
window->ns.layer = [window->ns.view layer];
|
window->ns.layer = [window->ns.view layer];
|
||||||
|
if (window->ns.scaleFramebuffer && window->ns.layer)
|
||||||
|
[window->ns.layer setContentsScale:[window->ns.object backingScaleFactor]];
|
||||||
|
|
||||||
if (!_glfwInitEGL())
|
if (!_glfwInitEGL())
|
||||||
return GLFW_FALSE;
|
return GLFW_FALSE;
|
||||||
|
Loading…
Reference in New Issue
Block a user