Преглед на файлове

Do not align sizes for buffer texture targets. (#1671)

This should fix a random crash in Hyrule Warriors, and potentially other games that use buffer textures.
riperiperi преди 5 години
родител
ревизия
a16f201a6f
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      Ryujinx.Graphics.Gpu/Image/TextureCompatibility.cs

+ 3 - 1
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);