mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-23 23:16:31 +00:00
Remove useless (and in valid) call to vkGetImageSubresourceLayout
This commit is contained in:
@@ -1894,10 +1894,6 @@ VulkanDebugManager::VulkanDebugManager(WrappedVulkan *driver, VkDevice dev)
|
||||
VkMemoryRequirements mrq = {0};
|
||||
m_pDriver->vkGetImageMemoryRequirements(dev, m_PickPixelImage, &mrq);
|
||||
|
||||
VkImageSubresource subr = {VK_IMAGE_ASPECT_COLOR_BIT, 0, 0};
|
||||
VkSubresourceLayout layout = {0};
|
||||
m_pDriver->vkGetImageSubresourceLayout(dev, m_PickPixelImage, &subr, &layout);
|
||||
|
||||
// allocate readback memory
|
||||
VkMemoryAllocateInfo allocInfo = {
|
||||
VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO, NULL, mrq.size,
|
||||
|
||||
Reference in New Issue
Block a user