Skip to content

Commit

Permalink
NSGL: Fix disabling of Retina resolution
Browse files Browse the repository at this point in the history
It appears the default is now YES.

Fixes #1442.

(cherry picked from commit fa60269)
  • Loading branch information
elmindreda committed Dec 19, 2019
1 parent 2da4adc commit e135210
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ information on what to include when reporting a bug.
- [X11] Bugfix: Decorations could not be enabled after window creation (#1566)
- [X11] Bugfix: Content scale fallback value could be inconsistent (#1578)
- [Wayland] Bugfix: The `GLFW_HAND_CURSOR` shape used the wrong image (#1432)
- [NSGL] Bugfix: `GLFW_COCOA_RETINA_FRAMEBUFFER` had no effect on newer
macOS versions (#1442)


## Contact
Expand Down
3 changes: 1 addition & 2 deletions src/nsgl_context.m
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,7 @@ GLFWbool _glfwCreateContextNSGL(_GLFWwindow* window,
forParameter:NSOpenGLContextParameterSurfaceOpacity];
}

if (window->ns.retina)
[window->ns.view setWantsBestResolutionOpenGLSurface:YES];
[window->ns.view setWantsBestResolutionOpenGLSurface:window->ns.retina];

GLint interval = 0;
[window->context.nsgl.object setValues:&interval
Expand Down

0 comments on commit e135210

Please sign in to comment.