aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorriperiperi <rhy3756547@hotmail.com>2020-11-27 18:23:30 +0000
committerGitHub <noreply@github.com>2020-11-27 19:23:30 +0100
commit88633f4bc2987c3118c4d0f482870b7871b47e81 (patch)
treebb60bbf7dc2837241d0b3b90c863daeb4e19758b
parent245f8a7eeeac59a94535715b6d35e64b7b3b8f9e (diff)
Blacklist very textures with a very small width or height from scaling (#1753)
-rw-r--r--Ryujinx.Graphics.Gpu/Image/TextureManager.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Gpu/Image/TextureManager.cs b/Ryujinx.Graphics.Gpu/Image/TextureManager.cs
index 8e64ca61..0834d7ac 100644
--- a/Ryujinx.Graphics.Gpu/Image/TextureManager.cs
+++ b/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)