GS/Metal: Fix crash when Z write is on second pass

This commit is contained in:
Connor McLaughlin authored and TellowKrinkle committed 2023-08-08 18:27:54 -05:00
1 parent 0c056ba691
commit 9c4a92c015
1 file changed
-2
-2
View File
@@ -2141,8 +2141,6 @@ void GSDeviceMTL::RenderHW(GSHWDrawConfig& config)
}
// Try to reduce render pass restarts
if (!stencil && config.depth.key == DepthStencilSelector::NoDepth().key && (m_current_render.color_target != rt || m_current_render.depth_target != config.ds))
config.ds = nullptr;
if (!config.ds && m_current_render.color_target == rt && stencil == m_current_render.stencil_target && m_current_render.depth_target != config.tex)
config.ds = m_current_render.depth_target;
if (!rt && config.ds == m_current_render.depth_target && m_current_render.color_target != config.tex)