aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/memory.h
diff options
context:
space:
mode:
authorFernando Sahmkow <[email protected]>2023-12-31 21:00:23 +0100
committerFernando Sahmkow <[email protected]>2023-12-31 21:03:46 +0100
commit737e6e531c8eb155fcbd19ddd679336332bbc8c6 (patch)
treee7446a2cbc3bb9e8fc683eb7b5f1fdfeadbb0f2a /src/core/memory.h
parentd07397931a167004ea191ef275d11b8a02aa4fb7 (diff)
downloadyuzu-android-737e6e531c8eb155fcbd19ddd679336332bbc8c6.tar.gz
yuzu-android-737e6e531c8eb155fcbd19ddd679336332bbc8c6.zip
Vulkan: Only recreate swapchain if the frame is bigger than the swap image.
Diffstat (limited to 'src/core/memory.h')
-rw-r--r--src/core/memory.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/memory.h b/src/core/memory.h
index 7bf05e177..e325dd613 100644
--- a/src/core/memory.h
+++ b/src/core/memory.h
@@ -683,7 +683,8 @@ public:
} else {
this->m_memory.WriteBlockUnsafe(this->m_addr, this->data(), this->size_bytes());
}
- } else if constexpr ((FLAGS & GuestMemoryFlags::Safe) || (FLAGS & GuestMemoryFlags::Cached)) {
+ } else if constexpr ((FLAGS & GuestMemoryFlags::Safe) ||
+ (FLAGS & GuestMemoryFlags::Cached)) {
this->m_memory.InvalidateRegion(this->m_addr, this->size_bytes());
}
}