ソースを参照

Fix regression on texture compatibility match checks (#1521)

gdkchan 5 年 前
コミット
bdfbcf4017

+ 1 - 1
Ryujinx.Graphics.Gpu/Image/Texture.cs

@@ -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;
             }

+ 1 - 1
Ryujinx.Graphics.Gpu/Image/TextureCompatibility.cs

@@ -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())
             {