diff options
author | gdkchan <gab.dark.100@gmail.com> | 2023-11-13 18:07:05 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-13 18:07:05 -0300 |
commit | e6e58389164fe7cb6894dfd6e8ac1cc7d9ec7d11 (patch) | |
tree | d94d20a46102d83afff1ba1a0114aab76f8c5462 /src/Ryujinx.Graphics.Gpu/Image/TextureGroup.cs | |
parent | 51065d91290e41a9d2518f44c9bdf83a9b0017ab (diff) |
Do not set modified flag again if texture was not modified (#5909)1.1.1080
* Do not set modified flag again if texture was not modified
* Formatting
* Fix copy dep regression
Diffstat (limited to 'src/Ryujinx.Graphics.Gpu/Image/TextureGroup.cs')
-rw-r--r-- | src/Ryujinx.Graphics.Gpu/Image/TextureGroup.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Ryujinx.Graphics.Gpu/Image/TextureGroup.cs b/src/Ryujinx.Graphics.Gpu/Image/TextureGroup.cs index 21d7939a..d7de8a3c 100644 --- a/src/Ryujinx.Graphics.Gpu/Image/TextureGroup.cs +++ b/src/Ryujinx.Graphics.Gpu/Image/TextureGroup.cs @@ -1660,13 +1660,13 @@ namespace Ryujinx.Graphics.Gpu.Image } // If size is zero, we have nothing to flush. - // If the flush is stale, we should ignore it because the texture was unmapped since the modified - // flag was set, and flushing it is not safe anymore as the GPU might no longer own the memory. - if (size == 0 || Storage.FlushStale) + if (size == 0) { return; } + Storage.ModifiedSinceLastFlush = false; + // There is a small gap here where the action is removed but _actionRegistered is still 1. // In this case it will skip registering the action, but here we are already handling it, // so there shouldn't be any issue as it's the same handler for all actions. |