mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-21 06:13:07 +01:00
store action was not set when clearWithRenderPass false and MSAA on (#2613)
Co-authored-by: Cedric Guillemet <ceguille@microsoft.com>
This commit is contained in:
@@ -4000,6 +4000,18 @@ namespace bgfx { namespace mtl
|
||||
if (desc.texture != NULL)
|
||||
{
|
||||
desc.loadAction = MTLLoadActionLoad;
|
||||
|
||||
if (NULL != m_capture
|
||||
&& !isValid(fbh)
|
||||
&& m_hasStoreActionStoreAndMultisampleResolve)
|
||||
{
|
||||
desc.storeAction = desc.texture.sampleCount > 1 ? MTLStoreActionStoreAndMultisampleResolve : MTLStoreActionStore;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
desc.storeAction = desc.texture.sampleCount > 1 ? MTLStoreActionMultisampleResolve : MTLStoreActionStore;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user