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) {