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 5631c4bbc6
commit 0776cdda26
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)
{