mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 06:51:26 +12:00
rsx: Align width properly when normalizing to avoid fractional results being lowered to 0
This commit is contained in:
parent
69c090b14a
commit
ef5b56bc48
1 changed files with 1 additions and 1 deletions
|
@ -839,7 +839,7 @@ namespace rsx
|
||||||
{
|
{
|
||||||
// Width is calculated in the coordinate-space of the requester; normalize
|
// Width is calculated in the coordinate-space of the requester; normalize
|
||||||
info.src_x = (info.src_x * required_bpp) / surface_bpp;
|
info.src_x = (info.src_x * required_bpp) / surface_bpp;
|
||||||
info.width = (info.width * required_bpp) / surface_bpp;
|
info.width = align(info.width * required_bpp, surface_bpp) / surface_bpp;
|
||||||
}
|
}
|
||||||
|
|
||||||
result.push_back(info);
|
result.push_back(info);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue