Fix WrappedID3D12Device::CreateHeap worngly returning E_NOINTERFACE.

This commit is contained in:
Julian Meder
2019-02-26 17:00:15 +00:00
committed by Baldur Karlsson
parent 793ea24f9d
commit 5878787daf
+1 -1
View File
@@ -1411,7 +1411,7 @@ HRESULT WrappedID3D12Device::CreateHeap(const D3D12_HEAP_DESC *pDesc, REFIID rii
if(ppvHeap == NULL)
return m_pDevice->CreateHeap(pDesc, riid, ppvHeap);
if(riid != __uuidof(ID3D12Heap) || riid != __uuidof(ID3D12Heap1))
if(riid != __uuidof(ID3D12Heap) && riid != __uuidof(ID3D12Heap1))
return E_NOINTERFACE;
void *realptr = NULL;