From 8a92df8611adf42778e403456c3edacd161ad889 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sat, 31 Aug 2024 19:43:00 -0300 Subject: [PATCH] Can't depend on zero init when we call Rent --- src/Ryujinx.Graphics.Gpu/Image/DiskTextureStorage.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Ryujinx.Graphics.Gpu/Image/DiskTextureStorage.cs b/src/Ryujinx.Graphics.Gpu/Image/DiskTextureStorage.cs index 79d6a037b9..982c6d7355 100644 --- a/src/Ryujinx.Graphics.Gpu/Image/DiskTextureStorage.cs +++ b/src/Ryujinx.Graphics.Gpu/Image/DiskTextureStorage.cs @@ -896,6 +896,8 @@ namespace Ryujinx.Graphics.Gpu.Image for (int j = 0; j < stride; 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; } } @@ -933,6 +935,7 @@ namespace Ryujinx.Graphics.Gpu.Image { output.Span[dstOffset + j * 2] = input[srcOffset + j]; output.Span[dstOffset + j * 2 + 1] = input[srcOffset + j + 1]; + output.Span[dstOffset + j * 2 + 2] = 0; output.Span[dstOffset + j * 2 + 3] = 0xff; } }