diff options
author | riperiperi <rhy3756547@hotmail.com> | 2022-07-15 13:24:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-15 09:24:13 -0300 |
commit | 5811d121dfc10239ce2f14e36b2addb37df3c83c (patch) | |
tree | d2ce312e9fe21fee5e222eb2cfae1b83e651dfca /Ryujinx.Graphics.Gpu/Image/TextureCache.cs | |
parent | 6eb85e846f25ae36a39685d6ac91025deaea306c (diff) |
Avoid scaling 2d textures that could be used as 3d (#3464)1.1.182
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Image/TextureCache.cs')
-rw-r--r-- | Ryujinx.Graphics.Gpu/Image/TextureCache.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Gpu/Image/TextureCache.cs b/Ryujinx.Graphics.Gpu/Image/TextureCache.cs index ba863a1e..ef29fe96 100644 --- a/Ryujinx.Graphics.Gpu/Image/TextureCache.cs +++ b/Ryujinx.Graphics.Gpu/Image/TextureCache.cs @@ -174,6 +174,14 @@ namespace Ryujinx.Graphics.Gpu.Image } } + if (info.Width == info.Height * info.Height) + { + // Possibly used for a "3D texture" drawn onto a 2D surface. + // Some games do this to generate a tone mapping LUT without rendering into 3D texture slices. + + return false; + } + return true; } |