From ea5515b1dad2e82d429b5adbdc1c58b41003ad63 Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 19 Sep 2019 18:36:22 +0100 Subject: [PATCH] Fix queries for IDXGIOutput4-6 --- renderdoc/driver/dxgi/dxgi_wrapped.cpp | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/renderdoc/driver/dxgi/dxgi_wrapped.cpp b/renderdoc/driver/dxgi/dxgi_wrapped.cpp index cbd0b5d28..ff6cbdf84 100644 --- a/renderdoc/driver/dxgi/dxgi_wrapped.cpp +++ b/renderdoc/driver/dxgi/dxgi_wrapped.cpp @@ -654,7 +654,7 @@ HRESULT STDMETHODCALLTYPE WrappedIDXGIOutput6::QueryInterface(REFIID riid, void } else if(riid == __uuidof(IDXGIOutput4)) { - if(m_pReal3) + if(m_pReal4) { AddRef(); *ppvObject = (IDXGIOutput4 *)this; @@ -667,7 +667,7 @@ HRESULT STDMETHODCALLTYPE WrappedIDXGIOutput6::QueryInterface(REFIID riid, void } else if(riid == __uuidof(IDXGIOutput5)) { - if(m_pReal3) + if(m_pReal5) { AddRef(); *ppvObject = (IDXGIOutput5 *)this; @@ -678,6 +678,19 @@ HRESULT STDMETHODCALLTYPE WrappedIDXGIOutput6::QueryInterface(REFIID riid, void return E_NOINTERFACE; } } + else if(riid == __uuidof(IDXGIOutput6)) + { + if(m_pReal6) + { + AddRef(); + *ppvObject = (IDXGIOutput6 *)this; + return S_OK; + } + else + { + return E_NOINTERFACE; + } + } else { WarnUnknownGUID("IDXGIOutput", riid);