Fix some invalid blits involving depth textures (#4723)

This commit is contained in:
gdkchan
2023-05-03 21:20:12 -03:00
committed by GitHub
parent 6279f5e430
commit 4d1579acbf
5 changed files with 24 additions and 8 deletions

View File

@ -1118,7 +1118,7 @@ namespace Ryujinx.Graphics.Gpu.Image
{
bool forSampler = (flags & TextureSearchFlags.ForSampler) != 0;
TextureMatchQuality matchQuality = TextureCompatibility.FormatMatches(Info, info, forSampler, (flags & TextureSearchFlags.ForCopy) != 0);
TextureMatchQuality matchQuality = TextureCompatibility.FormatMatches(Info, info, forSampler, (flags & TextureSearchFlags.DepthAlias) != 0);
if (matchQuality == TextureMatchQuality.NoMatch)
{