NSGL: Fix disabling of Retina resolution

From upstream: fa60269245
This commit is contained in:
Kovid Goyal 2019-12-15 20:54:21 +05:30
parent d68ae01448
commit b92f95b092
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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