Explorar o código

vulkan_common: fix incompatible property flags

Liam %!s(int64=3) %!d(string=hai) anos
pai
achega
122435e080
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/video_core/vulkan_common/vulkan_memory_allocator.cpp

+ 1 - 1
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: