metal: lowdpi on macOS uses nearest instead of linear upscaling.

Matches the behaviour of the OpenGL backend on macOS.
This commit is contained in:
Alex Szpakowski
2022-01-23 12:55:06 -04:00
parent 4de258b5fb
commit e4020e439a
+5
View File
@@ -479,6 +479,11 @@ bool Graphics::setMode(void *context, int width, int height, int pixelwidth, int
// This is set to NO when there are pending screen captures.
metalLayer.framebufferOnly = YES;
#ifdef LOVE_MACOS
// Matches behaviour of SDL's OpenGL context when using the GL renderer.
metalLayer.magnificationFilter = kCAFilterNearest;
#endif
setViewportSize(width, height, pixelwidth, pixelheight);
created = true;