aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Ryujinx.Graphics.Gpu/Image/TextureCache.cs8
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;
}