mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-27 17:07:10 +02:00
Fix compressed to non-compressed texture copy size (#1649)
This commit is contained in:
parent
2723c639e1
commit
36e1e53013
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue