mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-15 09:35:27 +00:00
Fix compressed to non-compressed texture copy size (#1649)
This commit is contained in:
parent
876fa656f6
commit
6222f173f0
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue