aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-05-14 01:23:29 -0700
committerGitHub <noreply@github.com>2023-05-14 01:23:29 -0700
commit35fe99f699b2ef7de8cf2922f25fa407e7a164e5 (patch)
tree685274f8b4000c9676bf7e41b6693b81c2e2d3f3 /src
parent789be8368ff1ebef48775193f6f2f6eb4612cbc8 (diff)
parentb10b8b7a57a6661bc5e93743e2c3d362e6ac1c1b (diff)
Merge pull request #10286 from liamwhite/compatible-bits
vulkan_common: fix incompatible property flags
Diffstat (limited to 'src')
-rw-r--r--src/video_core/vulkan_common/vulkan_memory_allocator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/vulkan_common/vulkan_memory_allocator.cpp b/src/video_core/vulkan_common/vulkan_memory_allocator.cpp
index 1732866e04..e28a556f89 100644
--- a/src/video_core/vulkan_common/vulkan_memory_allocator.cpp
+++ b/src/video_core/vulkan_common/vulkan_memory_allocator.cpp
@@ -147,7 +147,7 @@ public:
/// Returns whether this allocation is compatible with the arguments.
[[nodiscard]] bool IsCompatible(VkMemoryPropertyFlags flags, u32 type_mask) const {
- return (flags & property_flags) == property_flags && (type_mask & shifted_memory_type) != 0;
+ return (flags & property_flags) == flags && (type_mask & shifted_memory_type) != 0;
}
private: