aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Ryujinx.Graphics.Gpu/Image/TextureCompatibility.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Gpu/Image/TextureCompatibility.cs b/Ryujinx.Graphics.Gpu/Image/TextureCompatibility.cs
index 6b85e49a..2507519b 100644
--- a/Ryujinx.Graphics.Gpu/Image/TextureCompatibility.cs
+++ b/Ryujinx.Graphics.Gpu/Image/TextureCompatibility.cs
@@ -274,7 +274,9 @@ namespace Ryujinx.Graphics.Gpu.Image
return false;
}
- if (alignSizes)
+ bool isTextureBuffer = lhs.Target == Target.TextureBuffer || rhs.Target == Target.TextureBuffer;
+
+ if (alignSizes && !isTextureBuffer)
{
Size size0 = GetAlignedSize(lhs);
Size size1 = GetAlignedSize(rhs);