mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-08 08:40:55 +00:00
Fix broken Unwrap() on D3D12
This commit is contained in:
@@ -79,9 +79,7 @@ ID3D12Object *Unwrap(ID3D12Object *ptr)
|
||||
if(WrappedID3D12CommandQueue::IsAlloc(ptr))
|
||||
return (ID3D12Object *)(((WrappedID3D12CommandQueue *)ptr)->GetReal());
|
||||
|
||||
RDCERR("Unknown type of ptr 0x%p", ptr);
|
||||
|
||||
return NULL;
|
||||
return ((WrappedDeviceChild12<ID3D12DeviceChild> *)ptr)->GetReal();
|
||||
}
|
||||
|
||||
template <>
|
||||
|
||||
Reference in New Issue
Block a user