From db2489a55511b1ec2619c4ef45e086218f8cbdd1 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 14 Aug 2022 01:30:34 +1000 Subject: [PATCH] GS/TextureCache: Fix texture resize in DX11 --- pcsx2/GS/Renderers/HW/GSTextureCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/GS/Renderers/HW/GSTextureCache.cpp b/pcsx2/GS/Renderers/HW/GSTextureCache.cpp index 886e5f462f..afc0ec0cbc 100644 --- a/pcsx2/GS/Renderers/HW/GSTextureCache.cpp +++ b/pcsx2/GS/Renderers/HW/GSTextureCache.cpp @@ -2119,7 +2119,7 @@ void GSTextureCache::Surface::ResizeTexture(int new_width, int new_height, GSVec { // Can't do partial copies in DirectX for depth textures, and it's probably not ideal in other // APIs either. So use a fullscreen quad setting depth instead. - g_gs_device->StretchRect(m_texture, tex, GSVector4(rc), ShaderConvert::DEPTH_COPY, false); + g_gs_device->StretchRect(m_texture, tex, GSVector4(rc) / GSVector4(tex->GetWidth(), tex->GetHeight(), tex->GetWidth(), tex->GetHeight()), ShaderConvert::DEPTH_COPY, false); } else {