mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-27 14:35:41 -04: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…
x
Reference in New Issue
Block a user