diff --git a/pcsx2/GS/Renderers/Metal/convert.metal b/pcsx2/GS/Renderers/Metal/convert.metal index 05b6d0873a59e9..0ff944f940d450 100644 --- a/pcsx2/GS/Renderers/Metal/convert.metal +++ b/pcsx2/GS/Renderers/Metal/convert.metal @@ -252,7 +252,7 @@ struct ConvertToDepthRes fragment DepthOut ps_convert_float32_float24(ConvertShaderData data [[stage_in]], ConvertToDepthRes res) { // Truncates depth value to 24bits - uint d = uint(res.sample(data.t) * 0x1p32f) & 0xFFFFFF; + uint d = uint(0x1p32 * res.sample(data.t)) & 0xFFFFFF; return float(d) * 0x1p-32f; }