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 #2151 from ReinUsesLisp/fixup-vk-memory-manager

vk_memory_manager: Fixup commit interval allocation
This commit is contained in:
bunnei 2019-02-23 23:29:53 -05:00 committed by GitHub
commit 4ab978d670
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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