mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-03 19:07:56 +00:00
Forward dummy ID3D11Debug QueryInterface to device. Closes #946
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user