mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-08 08:40:55 +00:00
Implement QueryInterface for IDXGISwapChain4
Without this fix, QueryInterface would return an unwrapped swap chain, which later causes errors when using its unwrapped swap chain buffers.
This commit is contained in:
committed by
Baldur Karlsson
parent
b5e2a93cfe
commit
0a7aa47791
@@ -272,6 +272,19 @@ HRESULT STDMETHODCALLTYPE WrappedIDXGISwapChain4::QueryInterface(REFIID riid, vo
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
}
|
||||
else if(riid == __uuidof(IDXGISwapChain4))
|
||||
{
|
||||
if(m_pReal4)
|
||||
{
|
||||
AddRef();
|
||||
*ppvObject = (IDXGISwapChain4 *)this;
|
||||
return S_OK;
|
||||
}
|
||||
else
|
||||
{
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
string guid = ToStr::Get(riid);
|
||||
|
||||
Reference in New Issue
Block a user