From 6d320ce2ab934d3aba4f3852bbd62915de094af0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Thu, 27 Sep 2018 07:55:10 -0700 Subject: [PATCH] Metal: Added magnification filter setting. --- src/renderer_mtl.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer_mtl.mm b/src/renderer_mtl.mm index 116a5c116..8c2fa7036 100644 --- a/src/renderer_mtl.mm +++ b/src/renderer_mtl.mm @@ -471,6 +471,7 @@ namespace bgfx { namespace mtl retain(m_device); m_metalLayer.device = m_device; m_metalLayer.pixelFormat = MTLPixelFormatBGRA8Unorm; + m_metalLayer.magnificationFilter = kCAFilterNearest; m_cmd.init(m_device); BGFX_FATAL(NULL != m_cmd.m_commandQueue, Fatal::UnableToInitialize, "Unable to create Metal device.");