From 2b2d2396f13db672ed895cfdc9c5d45dc0e42d9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 3 Mar 2025 14:47:14 +0100 Subject: [PATCH] Fix miscounting of prim calls when stepping by draw --- GPU/GPUCommon.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/GPU/GPUCommon.cpp b/GPU/GPUCommon.cpp index f1f49faccf..972c36f528 100644 --- a/GPU/GPUCommon.cpp +++ b/GPU/GPUCommon.cpp @@ -2140,6 +2140,10 @@ void GPUCommon::NotifyFlush() { if (primAfterDraw_) { NOTICE_LOG(Log::GeDebugger, "Flush detected, breaking at next PRIM"); primAfterDraw_ = false; + + // We've got one to rewind. + primsThisFrame_--; + // Switch to PRIM mode. SetBreakNext(BreakNext::PRIM); }