Просмотр исходного кода

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

gdkchan 5 лет назад
Родитель
Сommit
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);