mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-02-01 04:05:38 +00:00
GPU/HW: Fix black screen in Metal after vertex ID wraparound
This commit is contained in:
parent
9fd2994b73
commit
be1d558be1
|
@ -2551,10 +2551,9 @@ void GPU_HW::EnsureVertexBufferSpaceForCurrentCommand()
|
||||||
|
|
||||||
void GPU_HW::ResetBatchVertexDepth()
|
void GPU_HW::ResetBatchVertexDepth()
|
||||||
{
|
{
|
||||||
if (m_pgxp_depth_buffer || !m_vram_depth_texture)
|
|
||||||
return;
|
|
||||||
|
|
||||||
Log_PerfPrint("Resetting batch vertex depth");
|
Log_PerfPrint("Resetting batch vertex depth");
|
||||||
|
|
||||||
|
if (m_vram_depth_texture && !m_pgxp_depth_buffer)
|
||||||
UpdateDepthBufferFromMaskBit();
|
UpdateDepthBufferFromMaskBit();
|
||||||
|
|
||||||
m_current_depth = 1;
|
m_current_depth = 1;
|
||||||
|
|
Loading…
Reference in a new issue