rsx: Fix local slice height calculation
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user