From f453194e32bdc9ee274b6db567cf311c2a24f452 Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Tue, 19 Jan 2016 23:24:39 +0100 Subject: [PATCH] rsx: Fix int type not big enough Fix glitch in After Burner Climax --- rpcs3/Emu/RSX/rsx_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/rsx_utils.h b/rpcs3/Emu/RSX/rsx_utils.h index 070b3c5874..16328fb7a4 100644 --- a/rpcs3/Emu/RSX/rsx_utils.h +++ b/rpcs3/Emu/RSX/rsx_utils.h @@ -40,7 +40,7 @@ namespace rsx u32 y_mask = 0xAAAAAAAA; // We have to limit the masks to the lower of the two dimensions to allow for non-square textures - u16 limit_mask = (log2width < log2height) ? log2width : log2height; + u32 limit_mask = (log2width < log2height) ? log2width : log2height; // double the limit mask to account for bits in both x and y limit_mask = 1 << (limit_mask << 1);