mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-04 21:13:09 +00:00
return NULL for heaps that aren't in the capture
This commit is contained in:
1 parent
11e6c1f478
commit
b14d7c2c0b
1 file changed
+3
@@ -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