mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Add missing IID checks for creating ID3D12CommandQueue1
This commit is contained in:
@@ -152,7 +152,7 @@ HRESULT WrappedID3D12Device::CreateCommandQueue(const D3D12_COMMAND_QUEUE_DESC *
|
||||
if(ppCommandQueue == NULL)
|
||||
return m_pDevice->CreateCommandQueue(pDesc, riid, NULL);
|
||||
|
||||
if(riid != __uuidof(ID3D12CommandQueue))
|
||||
if(riid != __uuidof(ID3D12CommandQueue) && riid != __uuidof(ID3D12CommandQueue1))
|
||||
return E_NOINTERFACE;
|
||||
|
||||
ID3D12CommandQueue *real = NULL;
|
||||
|
||||
@@ -135,7 +135,7 @@ HRESULT WrappedID3D12Device::CreateCommandQueue1(const D3D12_COMMAND_QUEUE_DESC
|
||||
if(ppCommandQueue == NULL)
|
||||
return m_pDevice9->CreateCommandQueue1(pDesc, CreatorID, riid, NULL);
|
||||
|
||||
if(riid != __uuidof(ID3D12CommandQueue))
|
||||
if(riid != __uuidof(ID3D12CommandQueue) && riid != __uuidof(ID3D12CommandQueue1))
|
||||
return E_NOINTERFACE;
|
||||
|
||||
ID3D12CommandQueue *real = NULL;
|
||||
|
||||
Reference in New Issue
Block a user