X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fvulkan%2Ftransferqueue.cpp;h=4ad50d860f126952ad4024c6d9208cd05149f055;hb=bec8444ce5f844d156f5aac90ce9f0a92750cf62;hp=9fc941401ed90ef954b4a156ae7b1b801baf149f;hpb=7e48ef177b668f2ed4c0346fa268e3dbfbb63203;p=libs%2Fgl.git diff --git a/source/backends/vulkan/transferqueue.cpp b/source/backends/vulkan/transferqueue.cpp index 9fc94140..4ad50d86 100644 --- a/source/backends/vulkan/transferqueue.cpp +++ b/source/backends/vulkan/transferqueue.cpp @@ -126,7 +126,7 @@ TransferQueue::StagingBuffer::StagingBuffer(Device &d, size_t s): MemoryAllocator &allocator = device.get_allocator(); memory_id = allocator.allocate(buffer, STAGING_MEMORY); - mapped_address = allocator.map(memory_id, 0, size); + mapped_address = allocator.map(memory_id); } TransferQueue::StagingBuffer::StagingBuffer(StagingBuffer &&other): @@ -149,7 +149,7 @@ TransferQueue::StagingBuffer::~StagingBuffer() if(mapped_address) { - allocator.unmap(mapped_address); + allocator.unmap(memory_id); allocator.release(memory_id); } if(buffer)