From 58ae9fd355f179ac67f7704bf1182d279d61897f Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Sun, 15 Oct 2023 00:12:44 -0500 Subject: [PATCH] GS:MTL: Fix handling of tex is depth fb --- pcsx2/GS/Renderers/Metal/tfx.metal | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pcsx2/GS/Renderers/Metal/tfx.metal b/pcsx2/GS/Renderers/Metal/tfx.metal index c7632c21bb..56a7941502 100644 --- a/pcsx2/GS/Renderers/Metal/tfx.metal +++ b/pcsx2/GS/Renderers/Metal/tfx.metal @@ -532,7 +532,12 @@ struct PSMain float4 fetch_c(ushort2 uv) { - return PS_TEX_IS_DEPTH ? tex_depth.read(uv) : tex.read(uv); + if (PS_TEX_IS_FB) + return current_color; + else if (PS_TEX_IS_DEPTH) + return tex_depth.read(uv); + else + return tex.read(uv); } // MARK: Depth sampling