Skip to content

Commit

Permalink
Fix a bug in virtual swapchain (#1938)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qining authored May 31, 2018
1 parent 4e4ced0 commit 1296714
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/vulkan/vk_virtual_swapchain/cc/swapchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ VKAPI_ATTR VkResult VKAPI_CALL vkCreateRenderPass(
VkRenderPassCreateInfo intercepted = *pCreateInfo;
std::vector<VkAttachmentDescription> attachments(
pCreateInfo->attachmentCount);
intercepted.pAttachments = attachments.data();

for (size_t i = 0; i < pCreateInfo->attachmentCount; ++i) {
attachments[i] = pCreateInfo->pAttachments[i];
Expand Down

0 comments on commit 1296714

Please sign in to comment.