Fix broken Unwrap() on D3D12

This commit is contained in:
baldurk
2020-09-14 12:31:57 +01:00
parent 76d91d5eef
commit c455fa9d49
+1 -3
View File
@@ -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 <>