diff --git a/src/utils.cpp b/src/utils.cpp index 0bb0a0a..45e8b0e 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -56,6 +56,7 @@ void Utils::copyImage(VkCommandBuffer buf, const VkImageMemoryBarrier srcBarrier{ .sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER, .dstAccessMask = VK_ACCESS_TRANSFER_READ_BIT, + .oldLayout = VK_IMAGE_LAYOUT_PRESENT_SRC_KHR, .newLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, .image = src, .subresourceRange = {