0
0
Fork 0
mirror of https://github.com/ryujinx-mirror/ryujinx.git synced 2024-12-23 17:25:50 +00:00

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

This commit is contained in:
gdkchan 2020-11-01 15:26:24 -03:00 committed by GitHub
parent 876fa656f6
commit 6222f173f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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