mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +00:00
Add proper casts when returning the wrapped command queue
This commit is contained in:
@@ -216,7 +216,10 @@ HRESULT WrappedID3D12Device::CreateCommandQueue(const D3D12_COMMAND_QUEUE_DESC *
|
||||
wrapped->GetCreationRecord()->GetResourceID(), eFrameRef_Read);
|
||||
}
|
||||
|
||||
*ppCommandQueue = (ID3D12CommandQueue *)wrapped;
|
||||
if(riid == __uuidof(ID3D12CommandQueue))
|
||||
*ppCommandQueue = (ID3D12CommandQueue *)wrapped;
|
||||
else if(riid == __uuidof(ID3D12CommandQueue1))
|
||||
*ppCommandQueue = (ID3D12CommandQueue1 *)wrapped;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -200,7 +200,10 @@ HRESULT WrappedID3D12Device::CreateCommandQueue1(const D3D12_COMMAND_QUEUE_DESC
|
||||
wrapped->GetCreationRecord()->GetResourceID(), eFrameRef_Read);
|
||||
}
|
||||
|
||||
*ppCommandQueue = (ID3D12CommandQueue *)wrapped;
|
||||
if(riid == __uuidof(ID3D12CommandQueue))
|
||||
*ppCommandQueue = (ID3D12CommandQueue *)wrapped;
|
||||
else if(riid == __uuidof(ID3D12CommandQueue1))
|
||||
*ppCommandQueue = (ID3D12CommandQueue1 *)wrapped;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user