mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-20 15:25:38 +00:00
GPU/HW: Fix black screen in Metal after vertex ID wraparound
This commit is contained in:
parent
9fd2994b73
commit
be1d558be1
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue