From f53361b96677d7c21f9be4a162e3dbc258c6fe9a Mon Sep 17 00:00:00 2001 From: kd-11 Date: Sun, 8 Sep 2019 15:43:50 +0300 Subject: [PATCH] rsx: Fix fast texture copy when src_pitch != width * block_size - Happens on mipmapped linear images --- rpcs3/Emu/RSX/Common/TextureUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/Common/TextureUtils.cpp b/rpcs3/Emu/RSX/Common/TextureUtils.cpp index 090479c006..f0a7a572f6 100644 --- a/rpcs3/Emu/RSX/Common/TextureUtils.cpp +++ b/rpcs3/Emu/RSX/Common/TextureUtils.cpp @@ -65,7 +65,7 @@ struct copy_unmodified_block if (src_pitch_in_block == dst_pitch_in_block && !border) { // Fast copy - const auto data_length = width_in_block * words_per_block * row_count * depth; + const auto data_length = src_pitch_in_block * words_per_block * row_count * depth; copy(dst, src.subspan(0, data_length)); return; }