aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Gpu/Image/TextureGroupHandle.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2023-11-14 22:24:54 -0300
committerGitHub <noreply@github.com>2023-11-14 22:24:54 -0300
commit1329c47ea46d3fa152dabe02cff82db84429545a (patch)
treeede4452906389421247940d82575e8d8c19e8574 /src/Ryujinx.Graphics.Gpu/Image/TextureGroupHandle.cs
parent6bce46621c9952bdc697c1977cb866b48cbfad58 (diff)
Work around issue apparently caused by 5909 (#5926)
Diffstat (limited to 'src/Ryujinx.Graphics.Gpu/Image/TextureGroupHandle.cs')
-rw-r--r--src/Ryujinx.Graphics.Gpu/Image/TextureGroupHandle.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/Ryujinx.Graphics.Gpu/Image/TextureGroupHandle.cs b/src/Ryujinx.Graphics.Gpu/Image/TextureGroupHandle.cs
index 84171c7a..717792e0 100644
--- a/src/Ryujinx.Graphics.Gpu/Image/TextureGroupHandle.cs
+++ b/src/Ryujinx.Graphics.Gpu/Image/TextureGroupHandle.cs
@@ -304,9 +304,17 @@ namespace Ryujinx.Graphics.Gpu.Image
/// </summary>
/// <param name="bound">True if this handle is being bound, false if unbound</param>
/// <param name="context">The GPU context to register a sync action on</param>
- public void SignalModifying(bool bound, GpuContext context)
+ /// <param name="setModified">Indicates if the modified flag should be set</param>
+ public void SignalModifying(bool bound, GpuContext context, bool setModified)
{
- SignalModified(context);
+ if (setModified)
+ {
+ SignalModified(context);
+ }
+ else
+ {
+ RegisterSync(context);
+ }
if (!bound && _syncActionRegistered && NextSyncCopies())
{