mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-12 08:45:48 +00:00
Handle calling GetDevice for a dxgi device on a swapchain
This commit is contained in:
@@ -529,6 +529,12 @@ HRESULT WrappedIDXGISwapChain4::GetDevice(
|
||||
*ppDevice = this;
|
||||
AddRef();
|
||||
}
|
||||
else if(riid == __uuidof(IDXGIDevice) || riid == __uuidof(IDXGIDevice1) ||
|
||||
riid == __uuidof(IDXGIDevice2) || riid == __uuidof(IDXGIDevice3) ||
|
||||
riid == __uuidof(IDXGIDevice4))
|
||||
{
|
||||
return m_pDevice->QueryInterface(riid, ppDevice);
|
||||
}
|
||||
else if(!HandleWrap("GetDevice", riid, ppDevice))
|
||||
{
|
||||
// can probably get away with returning the real result here,
|
||||
|
||||
Reference in New Issue
Block a user