Przeglądaj źródła

Blacklist very textures with a very small width or height from scaling (#1753)

riperiperi 5 lat temu
rodzic
commit
88633f4bc2
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      Ryujinx.Graphics.Gpu/Image/TextureManager.cs

+ 6 - 0
Ryujinx.Graphics.Gpu/Image/TextureManager.cs

@@ -408,6 +408,12 @@ namespace Ryujinx.Graphics.Gpu.Image
                 return false;
             }
 
+            if (info.Width < 8 || info.Height < 8)
+            {
+                // Discount textures with small dimensions.
+                return false;
+            }
+
             if (!(info.FormatInfo.Format.IsDepthOrStencil() || info.FormatInfo.Components == 1))
             {
                 // Discount square textures that aren't depth-stencil like. (excludes game textures, cubemap faces, most 3D texture LUT, texture atlas)