mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-02 13:29:14 +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:
parent
6f5a28025e
commit
5852e318e5
@ -126,7 +126,7 @@ namespace dxvk {
|
|||||||
|
|
||||||
|
|
||||||
void STDMETHODCALLTYPE D3D11Query::GetDevice(ID3D11Device **ppDevice) {
|
void STDMETHODCALLTYPE D3D11Query::GetDevice(ID3D11Device **ppDevice) {
|
||||||
*ppDevice = ref(m_device);
|
*ppDevice = m_device.ref();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -96,7 +96,7 @@ namespace dxvk {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
D3D11Device* const m_device;
|
const Com<D3D11Device> m_device;
|
||||||
D3D11_QUERY_DESC1 m_desc;
|
D3D11_QUERY_DESC1 m_desc;
|
||||||
|
|
||||||
D3D11_VK_QUERY_STATE m_state;
|
D3D11_VK_QUERY_STATE m_state;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user