From b92f95b0926d2630dd92770fc1842bf31c44095a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 15 Dec 2019 20:54:21 +0530 Subject: [PATCH] NSGL: Fix disabling of Retina resolution From upstream: https://github.com/glfw/glfw/commit/fa602692455d87e11c9ff5a5fb0681ca6403772a --- glfw/nsgl_context.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/glfw/nsgl_context.m b/glfw/nsgl_context.m index 66dcdc6e7..69b656b21 100644 --- a/glfw/nsgl_context.m +++ b/glfw/nsgl_context.m @@ -293,8 +293,7 @@ bool _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