GS:MTL: Fix handling of tex is depth fb

This commit is contained in:
TellowKrinkle 2023-10-15 00:12:44 -05:00 committed by TellowKrinkle
parent d34f359621
commit 58ae9fd355
1 changed files with 6 additions and 1 deletions

View File

@ -532,7 +532,12 @@ struct PSMain
float4 fetch_c(ushort2 uv) 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 // MARK: Depth sampling