From a7885ae1a4cbe98a45f9bc9e95ec2f69907d5c51 Mon Sep 17 00:00:00 2001 From: Triang3l Date: Wed, 22 Jun 2022 20:47:44 +0300 Subject: [PATCH] [GPU] Fix CPU-side float24 conversion broken recently --- src/xenia/gpu/xenos.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/gpu/xenos.cc b/src/xenia/gpu/xenos.cc index 66e3a4fe2..f15c621cd 100644 --- a/src/xenia/gpu/xenos.cc +++ b/src/xenia/gpu/xenos.cc @@ -146,7 +146,7 @@ uint32_t Float32To20e4(float f32, bool round_to_nearest_even) { f32u32 += 0xC8000000u; } if (round_to_nearest_even) { - f32u32 += f32u32 + 3 + ((f32u32 >> 3) & 1); + f32u32 += 3 + ((f32u32 >> 3) & 1); } return (f32u32 >> 3) & 0xFFFFFF; }