Fix regression on texture compatibility match checks (#1521)

This commit is contained in:
gdkchan 2020-09-01 03:58:40 -03:00 committed by GitHub
parent bc19114bb5
commit bdfbcf4017
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -676,7 +676,7 @@ namespace Ryujinx.Graphics.Gpu.Image
return false;
}
if (!TextureCompatibility.SizeMatches(Info, info))
if (!TextureCompatibility.SizeMatches(Info, info, (flags & TextureSearchFlags.Strict) == 0))
{
return false;
}

View File

@ -203,7 +203,7 @@ namespace Ryujinx.Graphics.Gpu.Image
/// <param name="rhs">Texture information to compare with</param>
/// <param name="alignSizes">True to align the sizes according to the texture layout for comparison</param>
/// <returns>True if the sizes matches, false otherwise</returns>
private static bool SizeMatches(TextureInfo lhs, TextureInfo rhs, bool alignSizes)
public static bool SizeMatches(TextureInfo lhs, TextureInfo rhs, bool alignSizes)
{
if (lhs.GetLayers() != rhs.GetLayers())
{