aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/Image/TexturePool.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2023-03-24 08:54:58 -0300
committerGitHub <noreply@github.com>2023-03-24 12:54:58 +0100
commit80519af67dd667f00f969cbae6c3e7ed34b4a4f7 (patch)
tree55ab6a9ac3c7b630b61551ef4c7d12cc3194c98c /Ryujinx.Graphics.Gpu/Image/TexturePool.cs
parent26e30faff3e4489ede6444f895c7f6a7eae78d2d (diff)
Update short cache textures if modified (#4586)1.1.679
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Image/TexturePool.cs')
-rw-r--r--Ryujinx.Graphics.Gpu/Image/TexturePool.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Gpu/Image/TexturePool.cs b/Ryujinx.Graphics.Gpu/Image/TexturePool.cs
index 717c5c36..5277e789 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
}
/// <summary>
- /// 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.
/// </summary>
/// <param name="texture">Texture with potential mapping change</param>