Make sure to unwrap oldSwapchain in vkCreateSwapchainKHR (Refs #178)

This commit is contained in:
baldurk
2016-02-18 10:14:39 +01:00
parent 1be73d0ff7
commit 0e76c57540
@@ -296,6 +296,7 @@ VkResult WrappedVulkan::vkCreateSwapchainKHR(
// make sure we can readback to get the screenshot
createInfo.imageUsage |= VK_IMAGE_USAGE_TRANSFER_SRC_BIT;
createInfo.surface = Unwrap(createInfo.surface);
createInfo.oldSwapchain = Unwrap(createInfo.oldSwapchain);
VkResult ret = ObjDisp(device)->CreateSwapchainKHR(Unwrap(device), &createInfo, pAllocator, pSwapChain);