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

Fix compressed to non-compressed texture copy size (#1649)

gdkchan преди 5 години
родител
ревизия
6222f173f0
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      Ryujinx.Graphics.OpenGL/Image/TextureCopyUnscaled.cs

+ 2 - 2
Ryujinx.Graphics.OpenGL/Image/TextureCopyUnscaled.cs

@@ -46,8 +46,8 @@ namespace Ryujinx.Graphics.OpenGL.Image
             }
             else if (srcInfo.IsCompressed && !dstInfo.IsCompressed)
             {
-                dstWidth  *= dstInfo.BlockWidth;
-                dstHeight *= dstInfo.BlockHeight;
+                dstWidth  *= srcInfo.BlockWidth;
+                dstHeight *= srcInfo.BlockHeight;
             }
 
             int width  = Math.Min(srcWidth,  dstWidth);