mirror of https://github.com/PCSX2/pcsx2.git
GS/Skip draw when ZTE=1 and ZTST is NEVER
This commit is contained in:
parent
6babbc1ff9
commit
2c175c0c7e
|
@ -1646,7 +1646,11 @@ void GSState::FlushPrim()
|
||||||
|
|
||||||
try
|
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&)
|
catch (GSRecoverableError&)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue