]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/vulkan/buffer_backend.cpp
Track the order of transfers involving the same objects
[libs/gl.git] / source / backends / vulkan / buffer_backend.cpp
index 14164daf208a8b67f4fdba00284b10df2d2aedc3..21e1dabeac041665e03aa076fccbd37e360b2977 100644 (file)
@@ -52,7 +52,7 @@ void VulkanBuffer::allocate()
 
 void VulkanBuffer::sub_data(size_t off, size_t sz, const void *d)
 {
-       void *staging = device.get_transfer_queue().prepare_transfer(sz,
+       void *staging = device.get_transfer_queue().prepare_transfer(this, false, sz,
                [this, off, sz](){
                        device.get_synchronizer().write_buffer(handle, off, sz);
                },