Skip to content

Commit

Permalink
fix image transition for presentation image
Browse files Browse the repository at this point in the history
... this should solve #32
  • Loading branch information
felixdoerre committed Sep 16, 2019
1 parent d34bc42 commit e3c4f6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion primus_vk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ void ImageWorker::createCommandBuffers(){
cmd.insertImageMemoryBarrier(
display_image,
VK_ACCESS_TRANSFER_WRITE_BIT, VK_ACCESS_MEMORY_READ_BIT,
VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_PRESENT_SRC_KHR,
VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, VK_IMAGE_LAYOUT_PRESENT_SRC_KHR,
VK_PIPELINE_STAGE_TRANSFER_BIT, VK_PIPELINE_STAGE_TRANSFER_BIT,
VkImageSubresourceRange{ VK_IMAGE_ASPECT_COLOR_BIT, 0, 1, 0, 1 });
cmd.end();
Expand Down

0 comments on commit e3c4f6c

Please sign in to comment.