mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 23:11:25 +12:00
rsx: Fix fast texture copy when src_pitch != width * block_size
- Happens on mipmapped linear images
This commit is contained in:
parent
0c69b7da8f
commit
f53361b966
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ struct copy_unmodified_block
|
||||||
if (src_pitch_in_block == dst_pitch_in_block && !border)
|
if (src_pitch_in_block == dst_pitch_in_block && !border)
|
||||||
{
|
{
|
||||||
// Fast copy
|
// 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));
|
copy(dst, src.subspan(0, data_length));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue