From 35971b29bc7fce11801993462c80d2e6ddb25483 Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Mon, 12 Jun 2023 23:23:24 +0100 Subject: [PATCH] GS: Skip autoflush optimisation when pending texflush --- 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 a77cdc16fa..93c027646a 100644 --- a/pcsx2/GS/GSState.cpp +++ b/pcsx2/GS/GSState.cpp @@ -2841,7 +2841,7 @@ template __forceinline void GSState::HandleAutoFlush() { // Kind of a cheat, making the assumption that 2 consecutive fan/strip triangles won't overlap each other (*should* be safe) - if ((m_index.tail & 1) && (prim == GS_TRIANGLESTRIP || prim == GS_TRIANGLEFAN)) + if ((m_index.tail & 1) && (prim == GS_TRIANGLESTRIP || prim == GS_TRIANGLEFAN) && !m_texflush_flag) return; // To briefly explain what's going on here, what we are checking for is draws over a texture when the source and destination are themselves.