Forward dummy ID3D11Debug QueryInterface to device. Closes #946

This commit is contained in:
baldurk
2018-04-05 11:10:36 +01:00
parent c075c3cfbb
commit 4047595811
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -335,6 +335,11 @@ ULONG STDMETHODCALLTYPE DummyID3D11InfoQueue::Release()
return 1;
}
HRESULT STDMETHODCALLTYPE DummyID3D11Debug::QueryInterface(REFIID riid, void **ppvObject)
{
return m_pDevice->QueryInterface(riid, ppvObject);
}
ULONG STDMETHODCALLTYPE DummyID3D11Debug::AddRef()
{
m_pDevice->AddRef();
+1 -1
View File
@@ -276,7 +276,7 @@ struct DummyID3D11Debug : public ID3D11Debug
DummyID3D11Debug() : m_pDevice(NULL) {}
//////////////////////////////
// implement IUnknown
HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void **ppvObject) { return E_NOINTERFACE; }
HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void **ppvObject);
ULONG STDMETHODCALLTYPE AddRef();
ULONG STDMETHODCALLTYPE Release();