Retain reset flags when creating a new metal frame buffer for a window. (#2469)

This commit is contained in:
Matt Tytel 2021-04-12 15:42:53 -04:00 committed by GitHub
parent eec0fcd867
commit c6e17db9d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -936,7 +936,7 @@ namespace bgfx { namespace mtl
FrameBufferMtl& fb = m_frameBuffers[_handle.idx];
fb.create(denseIdx, _nwh, _width, _height, _format, _depthFormat);
fb.m_swapChain->resize(m_frameBuffers[_handle.idx], _width, _height, 0);
fb.m_swapChain->resize(m_frameBuffers[_handle.idx], _width, _height, m_resolution.reset);
}
void destroyFrameBuffer(FrameBufferHandle _handle) override