mirror of
https://github.com/glfw/glfw.git
synced 2025-09-01 03:21:46 +00:00
Compare commits
2 Commits
8fb78128c3
...
c6756d34fc
Author | SHA1 | Date | |
---|---|---|---|
|
c6756d34fc | ||
|
168d72fc11 |
@ -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…
Reference in New Issue
Block a user