mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2025-01-19 02:47:24 +01:00
Blacklist very textures with a very small width or height from scaling (#1753)
This commit is contained in:
parent
245f8a7eee
commit
88633f4bc2
@ -408,6 +408,12 @@ namespace Ryujinx.Graphics.Gpu.Image
|
|||||||
return false;
|
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))
|
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)
|
// Discount square textures that aren't depth-stencil like. (excludes game textures, cubemap faces, most 3D texture LUT, texture atlas)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user