aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/Engine/MethodCopyTexture.cs
diff options
context:
space:
mode:
authorriperiperi <rhy3756547@hotmail.com>2020-02-06 21:49:26 +0000
committerGitHub <noreply@github.com>2020-02-07 08:49:26 +1100
commit6db16b411031b17ac171dac3899ce0488a1b40df (patch)
tree5e33452e60dc563db8e2bfbd32927c147baa5fa8 /Ryujinx.Graphics.Gpu/Engine/MethodCopyTexture.cs
parenta906f2071cbe4caf53c697bcb7dfa91e3e7dcfae (diff)
Only enumerate cached textures that are modified when flushing. (#918)
* Only enumarate cached textures that are modified when flushing, rather than all of them. * Remove locking. * Add missing clear. * Remove texture from modified list when data is disposed. In case the game does not call either flush method at any point. * Add ReferenceEqualityComparer from jD for the HashSet
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Engine/MethodCopyTexture.cs')
-rw-r--r--Ryujinx.Graphics.Gpu/Engine/MethodCopyTexture.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Gpu/Engine/MethodCopyTexture.cs b/Ryujinx.Graphics.Gpu/Engine/MethodCopyTexture.cs
index 8d1b2b71..4900db1b 100644
--- a/Ryujinx.Graphics.Gpu/Engine/MethodCopyTexture.cs
+++ b/Ryujinx.Graphics.Gpu/Engine/MethodCopyTexture.cs
@@ -94,7 +94,7 @@ namespace Ryujinx.Graphics.Gpu.Engine
srcTexture.HostTexture.CopyTo(dstTexture.HostTexture, srcRegion, dstRegion, linearFilter);
}
- dstTexture.Modified = true;
+ dstTexture.SignalModified();
}
}
} \ No newline at end of file