Browse Source

Merge pull request #2151 from ReinUsesLisp/fixup-vk-memory-manager

vk_memory_manager: Fixup commit interval allocation
bunnei 7 năm trước cách đây
mục cha
commit
4ab978d670
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      src/video_core/renderer_vulkan/vk_memory_manager.cpp

+ 1 - 2
src/video_core/renderer_vulkan/vk_memory_manager.cpp

@@ -238,8 +238,7 @@ bool VKMemoryManager::AllocMemory(vk::MemoryPropertyFlags wanted_properties, u32
 
 VKMemoryCommitImpl::VKMemoryCommitImpl(VKMemoryAllocation* allocation, vk::DeviceMemory memory,
                                        u8* data, u64 begin, u64 end)
-    : allocation{allocation}, memory{memory}, data{data},
-      interval(std::make_pair(begin, begin + end)) {}
+    : allocation{allocation}, memory{memory}, data{data}, interval(std::make_pair(begin, end)) {}
 
 VKMemoryCommitImpl::~VKMemoryCommitImpl() {
     allocation->Free(this);