return NULL for heaps that aren't in the capture

This commit is contained in:
baldurk
2016-10-21 18:51:58 +02:00
parent 11e6c1f478
commit b14d7c2c0b
+3
View File
@@ -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)