From 7cf05d0a46a31d1c491ac2d47734c1bf34b5ecd2 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Thu, 29 Sep 2022 22:29:30 -0700 Subject: [PATCH] GPU: Fix missed dirtying when fast loading tgen. --- GPU/GPUCommon.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GPU/GPUCommon.cpp b/GPU/GPUCommon.cpp index b1e435f7ed..1ff4b30b11 100644 --- a/GPU/GPUCommon.cpp +++ b/GPU/GPUCommon.cpp @@ -2363,7 +2363,8 @@ void GPUCommon::Execute_TgenMtxNum(u32 op, u32 diff) { if (dst[i] != newVal) { Flush(); dst[i] = newVal; - gstate_c.Dirty(DIRTY_TEXMATRIX); + // We check the matrix to see if we need projection. + gstate_c.Dirty(DIRTY_TEXMATRIX | DIRTY_FRAGMENTSHADER_STATE); } if (++i >= end) { break;