summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgidoly <66776795+gidoly@users.noreply.github.com>2023-07-03 13:25:23 +0200
committerGitHub <noreply@github.com>2023-07-03 13:25:23 +0200
commit408a9cd50def413b811d7c55543e2ddd45bedb21 (patch)
tree5c3c4021cf4bd76a1035023eb86f309b03034c5a
parentMerge pull request #10998 from Morph1984/qt-stop-messing-with-me (diff)
downloadyuzu-408a9cd50def413b811d7c55543e2ddd45bedb21.tar
yuzu-408a9cd50def413b811d7c55543e2ddd45bedb21.tar.gz
yuzu-408a9cd50def413b811d7c55543e2ddd45bedb21.tar.bz2
yuzu-408a9cd50def413b811d7c55543e2ddd45bedb21.tar.lz
yuzu-408a9cd50def413b811d7c55543e2ddd45bedb21.tar.xz
yuzu-408a9cd50def413b811d7c55543e2ddd45bedb21.tar.zst
yuzu-408a9cd50def413b811d7c55543e2ddd45bedb21.zip
-rw-r--r--src/video_core/texture_cache/texture_cache.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h
index 79f158db4..3a859139c 100644
--- a/src/video_core/texture_cache/texture_cache.h
+++ b/src/video_core/texture_cache/texture_cache.h
@@ -598,6 +598,10 @@ void TextureCache<P>::UnmapGPUMemory(size_t as_id, GPUVAddr gpu_addr, size_t siz
[&](ImageId id, Image&) { deleted_images.push_back(id); });
for (const ImageId id : deleted_images) {
Image& image = slot_images[id];
+ if (True(image.flags & ImageFlagBits::CpuModified)) {
+ continue;
+ }
+ image.flags |= ImageFlagBits::CpuModified;
if (True(image.flags & ImageFlagBits::Remapped)) {
continue;
}