Merge pull request #1592 from attilaz/backbuffer-fix-metal

fixed metal backbuffer issues
This commit is contained in:
Бранимир Караџић 2018-12-27 20:35:27 -08:00 committed by GitHub
commit 82e82d27b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 6 deletions

View File

@ -1566,7 +1566,7 @@ namespace bgfx { namespace mtl
: m_frameBuffers[_fbh.idx].m_swapChain
;
if (NULL != m_backBufferColorMsaa)
if (NULL != swapChain->m_backBufferColorMsaa)
{
renderPassDescriptor.colorAttachments[0].texture = swapChain->m_backBufferColorMsaa;
renderPassDescriptor.colorAttachments[0].resolveTexture = NULL != m_screenshotTarget
@ -1731,7 +1731,7 @@ namespace bgfx { namespace mtl
if (!isValid(_fbh) )
{
murmur.add(m_backBufferPixelFormatHash);
murmur.add(m_mainFrameBuffer.m_pixelFormatHash);
}
else
{
@ -2164,10 +2164,6 @@ namespace bgfx { namespace mtl
CommandQueueMtl m_cmd;
CAMetalLayer* m_metalLayer;
Texture m_backBufferColorMsaa;
Texture m_backBufferDepth;
Texture m_backBufferStencil;
uint32_t m_backBufferPixelFormatHash;
uint32_t m_maxAnisotropy;
bool m_iOS9Runtime;