GS/Skip draw when ZTE=1 and ZTST is NEVER

This commit is contained in:
Stenzek 2023-06-11 18:12:48 +10:00 committed by Connor McLaughlin
parent 6babbc1ff9
commit 2c175c0c7e
1 changed files with 5 additions and 1 deletions

View File

@ -1646,7 +1646,11 @@ void GSState::FlushPrim()
try
{
Draw();
// Skip draw if Z test is enabled, but set to fail all pixels.
const bool skip_draw = (m_context->TEST.ZTE && m_context->TEST.ZTST == ZTST_NEVER);
if (!skip_draw)
Draw();
}
catch (GSRecoverableError&)
{