Cocoa: Apply retina window hint to Metal layer

Related to #1340.
This commit is contained in:
Camilla Löwy
2019-03-27 17:07:44 +01:00
parent e108c0de0d
commit 980fc9b52f
3 changed files with 9 additions and 5 deletions
+3
View File
@@ -360,6 +360,9 @@ GLFWbool _glfwCreateContextNSGL(_GLFWwindow* window,
forParameter:NSOpenGLContextParameterSurfaceOpacity];
}
if (window->ns.retina)
[window->ns.view setWantsBestResolutionOpenGLSurface:YES];
[window->context.nsgl.object setView:window->ns.view];
window->context.nsgl.swapIntervalCond = [NSCondition new];