diff --git a/src/d3d11/d3d11_query.cpp b/src/d3d11/d3d11_query.cpp index d2ac5dc5..afe1a84a 100644 --- a/src/d3d11/d3d11_query.cpp +++ b/src/d3d11/d3d11_query.cpp @@ -126,7 +126,7 @@ namespace dxvk { void STDMETHODCALLTYPE D3D11Query::GetDevice(ID3D11Device **ppDevice) { - *ppDevice = ref(m_device); + *ppDevice = m_device.ref(); } diff --git a/src/d3d11/d3d11_query.h b/src/d3d11/d3d11_query.h index b8c42f70..21378f44 100644 --- a/src/d3d11/d3d11_query.h +++ b/src/d3d11/d3d11_query.h @@ -96,7 +96,7 @@ namespace dxvk { private: - D3D11Device* const m_device; + const Com m_device; D3D11_QUERY_DESC1 m_desc; D3D11_VK_QUERY_STATE m_state;