|
|
@@ -3400,13 +3400,14 @@ BX_STATIC_ASSERT(BX_COUNTOF(s_accessNames) == Access::Count, "Invalid s_accessNa
|
|
|
m_backBufferStencil = s_renderMtl->m_device.newTextureWithDescriptor(desc);
|
|
|
}
|
|
|
|
|
|
- if (sampleCount > 1)
|
|
|
+ if (NULL != m_backBufferColorMsaa)
|
|
|
{
|
|
|
- if (NULL != m_backBufferColorMsaa)
|
|
|
- {
|
|
|
- release(m_backBufferColorMsaa);
|
|
|
- }
|
|
|
+ release(m_backBufferColorMsaa);
|
|
|
+ m_backBufferColorMsaa = NULL;
|
|
|
+ }
|
|
|
|
|
|
+ if (sampleCount > 1)
|
|
|
+ {
|
|
|
desc.pixelFormat = m_metalLayer.pixelFormat;
|
|
|
m_backBufferColorMsaa = s_renderMtl->m_device.newTextureWithDescriptor(desc);
|
|
|
}
|