Metal: Added magnification filter setting.

This commit is contained in:
Branimir Karadžić 2018-09-27 07:55:10 -07:00
parent 24532ea586
commit 6d320ce2ab

View File

@ -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.");