mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
return NULL for heaps that aren't in the capture
This commit is contained in:
@@ -347,6 +347,9 @@ D3D12Descriptor *DescriptorFromPortableHandle(D3D12ResourceManager *manager, Por
|
||||
if(handle.heap == ResourceId())
|
||||
return NULL;
|
||||
|
||||
if(!manager->HasLiveResource(handle.heap))
|
||||
return NULL;
|
||||
|
||||
WrappedID3D12DescriptorHeap *heap = manager->GetLiveAs<WrappedID3D12DescriptorHeap>(handle.heap);
|
||||
|
||||
if(heap)
|
||||
|
||||
Reference in New Issue
Block a user