Browse Source
Merge pull request #10286 from liamwhite/compatible-bits
vulkan_common: fix incompatible property flags
pull/15/merge
bunnei
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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: |
|
|
|
|