From 287ab93cdc01cb267cd8a059d9234055ca4a0ab8 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 8 Feb 2020 00:01:12 +0900 Subject: [PATCH] GPU: Fix texture bit15 not propogating when blending enabled --- src/core/gpu_sw.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/gpu_sw.cpp b/src/core/gpu_sw.cpp index a5ef8567a..e670e63f4 100644 --- a/src/core/gpu_sw.cpp +++ b/src/core/gpu_sw.cpp @@ -540,9 +540,9 @@ void GPU_SW::ShadePixel(u32 x, u32 y, u8 color_r, u8 color_g, u8 color_b, u8 tex const u8 g = Truncate8(std::min((ZeroExtend16(texture_color.GetG8()) * ZeroExtend16(color_g)) >> 7, 0xFF)); const u8 b = Truncate8(std::min((ZeroExtend16(texture_color.GetB8()) * ZeroExtend16(color_b)) >> 7, 0xFF)); if constexpr (dithering_enable) - color.SetRGB24Dithered(x, y, r, g, b); + color.SetRGB24Dithered(x, y, r, g, b, texture_color.c); else - color.SetRGB24(r, g, b); + color.SetRGB24(r, g, b, texture_color.c); } } else