From ef5b56bc48f07c851a4ede2938d0e89e5e5da1b0 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Sat, 28 Sep 2019 20:52:28 +0300 Subject: [PATCH] rsx: Align width properly when normalizing to avoid fractional results being lowered to 0 --- rpcs3/Emu/RSX/Common/surface_store.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/Common/surface_store.h b/rpcs3/Emu/RSX/Common/surface_store.h index edbe849a3e..667350e6cb 100644 --- a/rpcs3/Emu/RSX/Common/surface_store.h +++ b/rpcs3/Emu/RSX/Common/surface_store.h @@ -839,7 +839,7 @@ namespace rsx { // Width is calculated in the coordinate-space of the requester; normalize 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);