mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-15 19:16:32 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user