From 7f216f2581803d4509090dfe240c789d958a38ef Mon Sep 17 00:00:00 2001 From: kd-11 Date: Sat, 22 Jan 2022 14:00:29 +0300 Subject: [PATCH] rsx: Fix local slice height calculation --- rpcs3/Emu/RSX/Common/texture_cache_helpers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/Common/texture_cache_helpers.h b/rpcs3/Emu/RSX/Common/texture_cache_helpers.h index 608298bd0d..8085011a38 100644 --- a/rpcs3/Emu/RSX/Common/texture_cache_helpers.h +++ b/rpcs3/Emu/RSX/Common/texture_cache_helpers.h @@ -360,7 +360,7 @@ namespace rsx const u16 dst_w = static_cast(std::get<2>(clipped).width); const u16 src_w = static_cast(dst_w * attr.bpp) / section_bpp; - const u16 height = static_cast(dst_h); + const u16 height = std::min(slice_end, section_end) - dst_y; if (scaling) {