From 7e8c93bea2792cf6ae2f74de8152a986a43eefce Mon Sep 17 00:00:00 2001 From: kd-11 Date: Wed, 11 May 2022 21:46:26 +0300 Subject: [PATCH] Random optimization --- rpcs3/Emu/RSX/RSXZCULL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/RSXZCULL.cpp b/rpcs3/Emu/RSX/RSXZCULL.cpp index e84af80790..4d00248714 100644 --- a/rpcs3/Emu/RSX/RSXZCULL.cpp +++ b/rpcs3/Emu/RSX/RSXZCULL.cpp @@ -389,7 +389,7 @@ namespace rsx // Quick reverse scan to push commands ahead of time for (auto It = m_pending_writes.rbegin(); It != m_pending_writes.rend(); ++It) { - if (It->query && It->query->num_draws) + if (It->sink && It->query && It->query->num_draws) { if (It->query->sync_tag > m_sync_tag) {