From 86fb8e58099bf533308f718a0a9741400607fba5 Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Fri, 8 Apr 2022 11:46:09 +0100 Subject: [PATCH] GS: Flush PRIM on write if pending PRIM draw had TME --- pcsx2/GS/GSState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/GS/GSState.cpp b/pcsx2/GS/GSState.cpp index 0d34885b07..9189fb2b6d 100644 --- a/pcsx2/GS/GSState.cpp +++ b/pcsx2/GS/GSState.cpp @@ -1722,7 +1722,7 @@ void GSState::Write(const u8* mem, int len) m_env.TRXPOS.DIRX, m_env.TRXPOS.DIRY, m_env.TRXPOS.DSAX, m_env.TRXPOS.DSAY, w, h); - if (PRIM->TME && (blit.DBP == m_context->TEX0.TBP0 || blit.DBP == m_context->TEX0.CBP)) // TODO: hmmmm + if ((PRIM->TME || (m_primflush && m_last_prim.TME)) && (blit.DBP == m_context->TEX0.TBP0 || blit.DBP == m_context->TEX0.CBP)) // TODO: hmmmm FlushPrim(); if (m_tr.end == 0 && len >= m_tr.total)