diff --git a/src/d3d11/d3d11_sampler.cpp b/src/d3d11/d3d11_sampler.cpp index 93c88147..f7e363c7 100644 --- a/src/d3d11/d3d11_sampler.cpp +++ b/src/d3d11/d3d11_sampler.cpp @@ -64,7 +64,7 @@ namespace dxvk { void STDMETHODCALLTYPE D3D11SamplerState::GetDevice(ID3D11Device** ppDevice) { - *ppDevice = m_device.ref(); + *ppDevice = ref(m_device); } diff --git a/src/d3d11/d3d11_sampler.h b/src/d3d11/d3d11_sampler.h index 7702b4b7..e1f9cef9 100644 --- a/src/d3d11/d3d11_sampler.h +++ b/src/d3d11/d3d11_sampler.h @@ -38,7 +38,7 @@ namespace dxvk { private: - Com m_device; + D3D11Device* const m_device; D3D11_SAMPLER_DESC m_desc; Rc m_sampler;