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; }