From bee14cad1640ebd6952eefa2daf39dbfe81e915f Mon Sep 17 00:00:00 2001 From: kd-11 Date: Sun, 9 Jun 2024 17:52:16 +0300 Subject: [PATCH] rsx: Do not apply texture remapping operations to "1" overrides. --- rpcs3/Emu/RSX/RSXThread.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rpcs3/Emu/RSX/RSXThread.cpp b/rpcs3/Emu/RSX/RSXThread.cpp index 675bfc6970..bcbfc8c7ec 100644 --- a/rpcs3/Emu/RSX/RSXThread.cpp +++ b/rpcs3/Emu/RSX/RSXThread.cpp @@ -2627,10 +2627,10 @@ namespace rsx return; } - if (remap_ctrl & 0x03) argb8_convert |= (mask & 0x1u) << bit_offset; - if (remap_ctrl & 0x0C) argb8_convert |= (mask & 0x2u) << bit_offset; - if (remap_ctrl & 0x30) argb8_convert |= (mask & 0x4u) << bit_offset; - if (remap_ctrl & 0xC0) argb8_convert |= (mask & 0x8u) << bit_offset; + if ((remap_ctrl & 0x03) == 0x02) argb8_convert |= (mask & 0x1u) << bit_offset; + if ((remap_ctrl & 0x0C) == 0x08) argb8_convert |= (mask & 0x2u) << bit_offset; + if ((remap_ctrl & 0x30) == 0x20) argb8_convert |= (mask & 0x4u) << bit_offset; + if ((remap_ctrl & 0xC0) == 0x80) argb8_convert |= (mask & 0x8u) << bit_offset; }; if (argb8_signed)