diff options
author | Philip Rebohle <philip.rebohle@tu-dortmund.de> | 2023-08-23 02:05:22 +0300 |
---|---|---|
committer | Philip Rebohle <philip.rebohle@tu-dortmund.de> | 2023-08-23 02:06:04 +0300 |
commit | 915244c00ce12a0f8771ceff62cec6f93b3cf431 (patch) | |
tree | 1ced2f5c6f9752b77250dbe1200ddfaef6276cfc | |
parent | 6fce0949429d51640b079bbfbe94410d966148e5 (diff) |
[d3d11] Fix various D3D10 interface queries
-rw-r--r-- | src/d3d11/d3d11_depth_stencil.cpp | 2 | ||||
-rw-r--r-- | src/d3d11/d3d11_view_dsv.cpp | 2 | ||||
-rw-r--r-- | src/d3d11/d3d11_view_rtv.cpp | 2 | ||||
-rw-r--r-- | 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; } |