mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-26 02:23:05 +00:00
Can't depend on zero init when we call Rent
This commit is contained in:
parent
c7f92117b2
commit
8a92df8611
1 changed files with 3 additions and 0 deletions
|
@ -896,6 +896,8 @@ namespace Ryujinx.Graphics.Gpu.Image
|
||||||
for (int j = 0; j < stride; j++)
|
for (int j = 0; j < stride; j++)
|
||||||
{
|
{
|
||||||
output.Span[dstOffset + j * 4] = input[srcOffset + j];
|
output.Span[dstOffset + j * 4] = input[srcOffset + j];
|
||||||
|
output.Span[dstOffset + j * 4 + 1] = 0;
|
||||||
|
output.Span[dstOffset + j * 4 + 2] = 0;
|
||||||
output.Span[dstOffset + j * 4 + 3] = 0xff;
|
output.Span[dstOffset + j * 4 + 3] = 0xff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -933,6 +935,7 @@ namespace Ryujinx.Graphics.Gpu.Image
|
||||||
{
|
{
|
||||||
output.Span[dstOffset + j * 2] = input[srcOffset + j];
|
output.Span[dstOffset + j * 2] = input[srcOffset + j];
|
||||||
output.Span[dstOffset + j * 2 + 1] = input[srcOffset + j + 1];
|
output.Span[dstOffset + j * 2 + 1] = input[srcOffset + j + 1];
|
||||||
|
output.Span[dstOffset + j * 2 + 2] = 0;
|
||||||
output.Span[dstOffset + j * 2 + 3] = 0xff;
|
output.Span[dstOffset + j * 2 + 3] = 0xff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue