mirror of
https://github.com/Ryujinx-NX/Ryujinx.git
synced 2024-11-14 13:07:41 -07:00
Can't depend on zero init when we call Rent
This commit is contained in:
parent
c7f92117b2
commit
8a92df8611
@ -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 New Issue
Block a user