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

pull/3178/head
Stenzek 2 years ago
parent 9fd2994b73
commit be1d558be1
No known key found for this signature in database

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

Loading…
Cancel
Save