Handle calling GetDevice for a dxgi device on a swapchain

This commit is contained in:
baldurk committed 2024-05-27 10:13:58 +01:00
1 parent 8b1d0956a2
commit 170ba62bcf
1 file changed
+6
+6
View File
@@ -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,