From 73d617fb7210acfc36f3cd4b8530cc9fc7656fd4 Mon Sep 17 00:00:00 2001 From: lightningterror <18107717+lightningterror@users.noreply.github.com> Date: Sat, 2 Mar 2024 23:27:41 +0100 Subject: [PATCH] GS/HW: RTA Decorrect on Target Update. --- pcsx2/GS/Renderers/HW/GSTextureCache.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pcsx2/GS/Renderers/HW/GSTextureCache.cpp b/pcsx2/GS/Renderers/HW/GSTextureCache.cpp index a8b64053f0..83dd67fa17 100644 --- a/pcsx2/GS/Renderers/HW/GSTextureCache.cpp +++ b/pcsx2/GS/Renderers/HW/GSTextureCache.cpp @@ -5963,6 +5963,15 @@ void GSTextureCache::Target::Update() return; } + if (m_dirty.size() != 1 || !total_rect.eq(m_valid) && (m_dirty.GetDirtyChannels() & 0x8)) + { + this->RTADecorrect(this); + } + else + { + m_rt_alpha_scale = false; + } + const GSVector4i t_offset(total_rect.xyxy()); const GSVector4i t_size(total_rect - t_offset); const GSVector4 t_sizef(t_size.zwzw());