GPU/HW: Fix black screen in Metal after vertex ID wraparound

This commit is contained in:
Stenzek 2024-04-15 23:30:55 +10:00
parent 9fd2994b73
commit be1d558be1
No known key found for this signature in database

View file

@ -2551,11 +2551,10 @@ void GPU_HW::EnsureVertexBufferSpaceForCurrentCommand()
void GPU_HW::ResetBatchVertexDepth()
{
if (m_pgxp_depth_buffer || !m_vram_depth_texture)
return;
Log_PerfPrint("Resetting batch vertex depth");
UpdateDepthBufferFromMaskBit();
if (m_vram_depth_texture && !m_pgxp_depth_buffer)
UpdateDepthBufferFromMaskBit();
m_current_depth = 1;
}