Fix miscounting of prim calls when stepping by draw

This commit is contained in:
Henrik Rydgård committed 2025-03-03 14:47:14 +01:00
1 parent 3ae469a4f8
commit 2b2d2396f1
1 file changed
+4
+4
View File
@@ -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);
}