mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-19 18:41:13 +00:00
Fix handling of unused attachments in dynamic rendering. Closes #2432
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -1103,7 +1103,7 @@ size_t GetNextPatchSize(const void *pNext)
|
||||
if(info->pDepthAttachment)
|
||||
{
|
||||
memSize += sizeof(*info->pDepthAttachment);
|
||||
memSize += GetNextPatchSize(info->pStencilAttachment->pNext);
|
||||
memSize += GetNextPatchSize(info->pDepthAttachment->pNext);
|
||||
}
|
||||
if(info->pStencilAttachment)
|
||||
{
|
||||
|
||||
@@ -6920,7 +6920,7 @@ void WrappedVulkan::vkCmdBeginRenderingKHR(VkCommandBuffer commandBuffer,
|
||||
else if(i == pRenderingInfo->colorAttachmentCount + 1)
|
||||
att = pRenderingInfo->pStencilAttachment;
|
||||
|
||||
if(!att)
|
||||
if(!att || !att->imageView)
|
||||
continue;
|
||||
|
||||
FrameRefType refType = eFrameRef_ReadBeforeWrite;
|
||||
|
||||
Reference in new issue
Block a user