mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
metal: lowdpi on macOS uses nearest instead of linear upscaling.
Matches the behaviour of the OpenGL backend on macOS.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user