From 89dcb78efa6edf97c1c3a9bd218383d5e5071e2e Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Tue, 20 Jun 2023 19:40:58 +0100 Subject: [PATCH] GS/CRC: Fix Ar Tonelico 2 CRC hack to check DS exists --- pcsx2/GS/Renderers/HW/GSHwHack.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/GS/Renderers/HW/GSHwHack.cpp b/pcsx2/GS/Renderers/HW/GSHwHack.cpp index d1f712ae3c..96489169d1 100644 --- a/pcsx2/GS/Renderers/HW/GSHwHack.cpp +++ b/pcsx2/GS/Renderers/HW/GSHwHack.cpp @@ -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);