Handle QueryInterface for ID3D12Device. Refs #1595

This commit is contained in:
baldurk
2019-11-14 17:24:14 +00:00
parent 07e8731776
commit 56f028039c
+6
View File
@@ -617,6 +617,12 @@ HRESULT WrappedID3D12Device::QueryInterface(REFIID riid, void **ppvObject)
return hr;
}
}
else if(riid == __uuidof(ID3D12Device))
{
AddRef();
*ppvObject = (ID3D12Device *)this;
return S_OK;
}
else if(riid == __uuidof(ID3D12Device1))
{
if(m_pDevice1)