From 6222f173f0c85a55d31655ddb78638907c07e1ce Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sun, 1 Nov 2020 15:26:24 -0300 Subject: [PATCH] Fix compressed to non-compressed texture copy size (#1649) --- Ryujinx.Graphics.OpenGL/Image/TextureCopyUnscaled.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ryujinx.Graphics.OpenGL/Image/TextureCopyUnscaled.cs b/Ryujinx.Graphics.OpenGL/Image/TextureCopyUnscaled.cs index 284011385..8fc8f85f9 100644 --- a/Ryujinx.Graphics.OpenGL/Image/TextureCopyUnscaled.cs +++ b/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);