1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-10-01 12:30:00 +02:00

Update short cache textures if modified (#4586)

This commit is contained in:
gdkchan 2023-03-24 08:54:58 -03:00 committed by GitHub
parent 26e30faff3
commit 80519af67d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>