summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bunnei2023-05-14 01:23:29 -0700
committerGravatar GitHub2023-05-14 01:23:29 -0700
commit29c7176f559e41ee09e2a030d95c41c89f01d3a0 (patch)
tree685274f8b4000c9676bf7e41b6693b81c2e2d3f3
parentMerge pull request #10244 from liamwhite/lower-upper (diff)
parentvulkan_common: fix incompatible property flags (diff)
downloadyuzu-29c7176f559e41ee09e2a030d95c41c89f01d3a0.tar.gz
yuzu-29c7176f559e41ee09e2a030d95c41c89f01d3a0.tar.xz
yuzu-29c7176f559e41ee09e2a030d95c41c89f01d3a0.zip
Merge pull request #10286 from liamwhite/compatible-bits
vulkan_common: fix incompatible property flags
Diffstat (limited to '')
-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 1732866e0..e28a556f8 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:
147 147
148 /// Returns whether this allocation is compatible with the arguments. 148 /// Returns whether this allocation is compatible with the arguments.
149 [[nodiscard]] bool IsCompatible(VkMemoryPropertyFlags flags, u32 type_mask) const { 149 [[nodiscard]] bool IsCompatible(VkMemoryPropertyFlags flags, u32 type_mask) const {
150 return (flags & property_flags) == property_flags && (type_mask & shifted_memory_type) != 0; 150 return (flags & property_flags) == flags && (type_mask & shifted_memory_type) != 0;
151 } 151 }
152 152
153private: 153private: