From 915244c00ce12a0f8771ceff62cec6f93b3cf431 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Wed, 23 Aug 2023 01:05:22 +0200 Subject: [PATCH] [d3d11] Fix various D3D10 interface queries --- src/d3d11/d3d11_depth_stencil.cpp | 2 +- src/d3d11/d3d11_view_dsv.cpp | 2 +- src/d3d11/d3d11_view_rtv.cpp | 2 +- src/d3d11/d3d11_view_srv.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/d3d11/d3d11_depth_stencil.cpp b/src/d3d11/d3d11_depth_stencil.cpp index 65416c9d..69efe593 100644 --- a/src/d3d11/d3d11_depth_stencil.cpp +++ b/src/d3d11/d3d11_depth_stencil.cpp @@ -37,7 +37,7 @@ namespace dxvk { if (riid == __uuidof(ID3D10DeviceChild) || riid == __uuidof(ID3D10DepthStencilState)) { - *ppvObject = ref(this); + *ppvObject = ref(&m_d3d10); return S_OK; } diff --git a/src/d3d11/d3d11_view_dsv.cpp b/src/d3d11/d3d11_view_dsv.cpp index c9a861f9..c444d864 100644 --- a/src/d3d11/d3d11_view_dsv.cpp +++ b/src/d3d11/d3d11_view_dsv.cpp @@ -126,7 +126,7 @@ namespace dxvk { if (riid == __uuidof(ID3D10DeviceChild) || riid == __uuidof(ID3D10View) || riid == __uuidof(ID3D10DepthStencilView)) { - *ppvObject = ref(this); + *ppvObject = ref(&m_d3d10); return S_OK; } diff --git a/src/d3d11/d3d11_view_rtv.cpp b/src/d3d11/d3d11_view_rtv.cpp index eeb8787c..f8b58f90 100644 --- a/src/d3d11/d3d11_view_rtv.cpp +++ b/src/d3d11/d3d11_view_rtv.cpp @@ -137,7 +137,7 @@ namespace dxvk { if (riid == __uuidof(ID3D10DeviceChild) || riid == __uuidof(ID3D10View) || riid == __uuidof(ID3D10RenderTargetView)) { - *ppvObject = ref(this); + *ppvObject = ref(&m_d3d10); return S_OK; } diff --git a/src/d3d11/d3d11_view_srv.cpp b/src/d3d11/d3d11_view_srv.cpp index 4d1bd048..065e6005 100644 --- a/src/d3d11/d3d11_view_srv.cpp +++ b/src/d3d11/d3d11_view_srv.cpp @@ -205,7 +205,7 @@ namespace dxvk { || riid == __uuidof(ID3D10View) || riid == __uuidof(ID3D10ShaderResourceView) || riid == __uuidof(ID3D10ShaderResourceView1)) { - *ppvObject = ref(this); + *ppvObject = ref(&m_d3d10); return S_OK; }