]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/vulkan/texture_backend.cpp
Refactor TransferQueue to require explicit finalization of transfers
[libs/gl.git] / source / backends / vulkan / texture_backend.cpp
index 237b984558bf1dd3fd484009a1b06cd5b2bc24c9..217299bf26d2ffe878572b03b2a57d752f757bf5 100644 (file)
@@ -178,7 +178,7 @@ void VulkanTexture::generate_mipmap()
        TransferQueue &tq = device.get_transfer_queue();
        for(unsigned i=0; i+1<n_levels; ++i)
        {
-               tq.prepare_transfer(this, true, 0,
+               tq.prepare_transfer(this, true,
                        [this, i](){
                                change_layout(i, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, false);
                                change_layout(i+1, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, true);