From 95c91b4dc6c43f4519ee94d7aea3b60dba025cb1 Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Sat, 28 May 2022 21:56:13 +0100 Subject: [PATCH] GS-TC: Preserve scale when resizing target for display. --- pcsx2/GS/Renderers/HW/GSTextureCache.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcsx2/GS/Renderers/HW/GSTextureCache.cpp b/pcsx2/GS/Renderers/HW/GSTextureCache.cpp index 8b8e96ae23..bedecdacb4 100644 --- a/pcsx2/GS/Renderers/HW/GSTextureCache.cpp +++ b/pcsx2/GS/Renderers/HW/GSTextureCache.cpp @@ -664,6 +664,8 @@ void GSTextureCache::ScaleTargetForDisplay(Target* t, const GIFRegTEX0& dispfb, // Memory allocation failure, do our best to hobble along. return; } + // Keep the scale of the original texture. + new_texture->SetScale(old_texture->GetScale()); GL_CACHE("Expanding target for display output, target height %d @ 0x%X, display %d @ 0x%X offset %d needed %d", t->m_texture->GetHeight(), t->m_TEX0.TBP0, real_h, dispfb.TBP0, y_offset, needed_height);