1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-03 04:24:11 +01:00

[d3d11] Fix device ref counting from queries. (#1887)

Fixes AO Tennis 2 crash on exit.

Co-authored-by: Paul Gofman <pgofman@codeweavers.com>
This commit is contained in:
gofman 2021-01-06 22:10:44 +03:00 committed by GitHub
parent 6f5a28025e
commit 5852e318e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@ namespace dxvk {
void STDMETHODCALLTYPE D3D11Query::GetDevice(ID3D11Device **ppDevice) {
*ppDevice = ref(m_device);
*ppDevice = m_device.ref();
}

View File

@ -96,7 +96,7 @@ namespace dxvk {
private:
D3D11Device* const m_device;
const Com<D3D11Device> m_device;
D3D11_QUERY_DESC1 m_desc;
D3D11_VK_QUERY_STATE m_state;