From 80519af67dd667f00f969cbae6c3e7ed34b4a4f7 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Fri, 24 Mar 2023 08:54:58 -0300 Subject: [PATCH] Update short cache textures if modified (#4586) --- Ryujinx.Graphics.Gpu/Image/TexturePool.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Ryujinx.Graphics.Gpu/Image/TexturePool.cs b/Ryujinx.Graphics.Gpu/Image/TexturePool.cs index 717c5c362..5277e7899 100644 --- a/Ryujinx.Graphics.Gpu/Image/TexturePool.cs +++ b/Ryujinx.Graphics.Gpu/Image/TexturePool.cs @@ -130,6 +130,10 @@ namespace Ryujinx.Graphics.Gpu.Image return ref descriptor; } } + else + { + texture.SynchronizeMemory(); + } Items[id] = texture; @@ -233,7 +237,7 @@ namespace Ryujinx.Graphics.Gpu.Image } /// - /// Queues a request to update a texture's mapping. + /// Queues a request to update a texture's mapping. /// Mapping is updated later to avoid deleting the texture if it is still sparsely mapped. /// /// Texture with potential mapping change