Ensure swapchain image resource info is set up properly

* Without this, image views created off the swapchain images would destroy the
  actual underlying resource info when the view is destroyed, thinking that it
  has its own unique copy.
This commit is contained in:
baldurk committed 2025-08-07 14:08:19 +01:00
1 parent f21952ea81
commit 08f69e0f0f
1 file changed
+1
@@ -327,6 +327,7 @@ VkResult WrappedVulkan::vkGetSwapchainImagesKHR(VkDevice device, VkSwapchainKHR
record->AddParent(swaprecord);
record->resInfo = new ResourceInfo();
record->resInfo->parentResInfo = record->resInfo;
record->resInfo->imageInfo = swaprecord->swapInfo->imageInfo;
// note we add the chunk to the swap record, that way when the swapchain is created it will