mirror of https://github.com/bkaradzic/bgfx
Merge pull request #1592 from attilaz/backbuffer-fix-metal
fixed metal backbuffer issues
This commit is contained in:
commit
82e82d27b5
|
@ -1566,7 +1566,7 @@ namespace bgfx { namespace mtl
|
||||||
: m_frameBuffers[_fbh.idx].m_swapChain
|
: 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].texture = swapChain->m_backBufferColorMsaa;
|
||||||
renderPassDescriptor.colorAttachments[0].resolveTexture = NULL != m_screenshotTarget
|
renderPassDescriptor.colorAttachments[0].resolveTexture = NULL != m_screenshotTarget
|
||||||
|
@ -1731,7 +1731,7 @@ namespace bgfx { namespace mtl
|
||||||
|
|
||||||
if (!isValid(_fbh) )
|
if (!isValid(_fbh) )
|
||||||
{
|
{
|
||||||
murmur.add(m_backBufferPixelFormatHash);
|
murmur.add(m_mainFrameBuffer.m_pixelFormatHash);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -2164,10 +2164,6 @@ namespace bgfx { namespace mtl
|
||||||
CommandQueueMtl m_cmd;
|
CommandQueueMtl m_cmd;
|
||||||
|
|
||||||
CAMetalLayer* m_metalLayer;
|
CAMetalLayer* m_metalLayer;
|
||||||
Texture m_backBufferColorMsaa;
|
|
||||||
Texture m_backBufferDepth;
|
|
||||||
Texture m_backBufferStencil;
|
|
||||||
uint32_t m_backBufferPixelFormatHash;
|
|
||||||
uint32_t m_maxAnisotropy;
|
uint32_t m_maxAnisotropy;
|
||||||
|
|
||||||
bool m_iOS9Runtime;
|
bool m_iOS9Runtime;
|
||||||
|
|
Loading…
Reference in New Issue