mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
rsx: Fix local slice height calculation
This commit is contained in:
parent
6ffd38c393
commit
7f216f2581
1 changed files with 1 additions and 1 deletions
|
@ -360,7 +360,7 @@ namespace rsx
|
||||||
|
|
||||||
const u16 dst_w = static_cast<u16>(std::get<2>(clipped).width);
|
const u16 dst_w = static_cast<u16>(std::get<2>(clipped).width);
|
||||||
const u16 src_w = static_cast<u16>(dst_w * attr.bpp) / section_bpp;
|
const u16 src_w = static_cast<u16>(dst_w * attr.bpp) / section_bpp;
|
||||||
const u16 height = static_cast<u16>(dst_h);
|
const u16 height = std::min(slice_end, section_end) - dst_y;
|
||||||
|
|
||||||
if (scaling)
|
if (scaling)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue