mirror of https://github.com/PCSX2/pcsx2.git
GS/Metal: Fix crash when Z write is on second pass
This commit is contained in:
parent
0c056ba691
commit
9c4a92c015
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue