2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Merge pull request #10286 from liamwhite/compatible-bits

vulkan_common: fix incompatible property flags
This commit is contained in:
bunnei 2023-05-14 01:23:29 -07:00 committed by GitHub
commit 29c7176f55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: