mirror of
https://github.com/glfw/glfw.git
synced 2025-04-05 05:25:07 +00:00
Merge 168d72fc11
into e7ea71be03
This commit is contained in:
commit
4a54917bf2
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue