GS/CRC: Fix Ar Tonelico 2 CRC hack to check DS exists

This commit is contained in:
refractionpcsx2 2023-06-20 19:40:58 +01:00
parent 703c02c32c
commit 89dcb78efa
1 changed files with 1 additions and 1 deletions

View File

@ -945,7 +945,7 @@ bool GSHwHack::OI_ArTonelico2(GSRendererHW& r, GSTexture* rt, GSTexture* ds, GST
const GSVertex* v = &r.m_vertex.buff[0];
if (r.m_vertex.next == 2 && !RPRIM->TME && RFRAME.FBW == 10 && v->XYZ.Z == 0 && RTEST.ZTST == ZTST_ALWAYS)
if (ds && r.m_vertex.next == 2 && !RPRIM->TME && RFRAME.FBW == 10 && v->XYZ.Z == 0 && RTEST.ZTST == ZTST_ALWAYS)
{
GL_INS("OI_ArTonelico2");
g_gs_device->ClearDepth(ds, 0.0f);