mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-08 16:50:44 +00:00
Don't fetch pipeline cache record from handle that can be NULL
This commit is contained in:
@@ -422,8 +422,11 @@ VkResult WrappedVulkan::vkCreateGraphicsPipelines(
|
||||
VkResourceRecord *record = GetResourceManager()->AddResourceRecord(pPipelines[i]);
|
||||
record->AddChunk(chunk);
|
||||
|
||||
VkResourceRecord *cacherecord = GetRecord(pipelineCache);
|
||||
record->AddParent(cacherecord);
|
||||
if(pipelineCache != VK_NULL_HANDLE)
|
||||
{
|
||||
VkResourceRecord *cacherecord = GetRecord(pipelineCache);
|
||||
record->AddParent(cacherecord);
|
||||
}
|
||||
|
||||
VkResourceRecord *rprecord = GetRecord(pCreateInfos[i].renderPass);
|
||||
record->AddParent(rprecord);
|
||||
|
||||
Reference in New Issue
Block a user