diff --git a/renderdoc/driver/d3d11/d3d11_video.cpp b/renderdoc/driver/d3d11/d3d11_video.cpp index 171c11ec2..1ed044324 100644 --- a/renderdoc/driver/d3d11/d3d11_video.cpp +++ b/renderdoc/driver/d3d11/d3d11_video.cpp @@ -51,9 +51,17 @@ HRESULT STDMETHODCALLTYPE WrappedID3D11VideoDevice2::QueryInterface(REFIID riid, } else if(riid == __uuidof(ID3D11VideoDevice)) { - *ppvObject = (ID3D11VideoDevice *)this; - AddRef(); - return S_OK; + if(m_pReal) + { + *ppvObject = (ID3D11VideoDevice *)this; + AddRef(); + return S_OK; + } + else + { + *ppvObject = NULL; + return E_NOINTERFACE; + } } else if(riid == __uuidof(ID3D11VideoDevice1)) {