mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[d3d9] Fix query reset counter underflow
This commit is contained in:
parent
76e6b2764b
commit
ecc2302389
1 changed files with 3 additions and 1 deletions
|
@ -101,8 +101,10 @@ namespace dxvk {
|
|||
|
||||
if (dwIssueFlags == D3DISSUE_BEGIN) {
|
||||
if (QueryBeginnable(m_queryType)) {
|
||||
if (m_state == D3D9_VK_QUERY_BEGUN && QueryEndable(m_queryType))
|
||||
if (m_state == D3D9_VK_QUERY_BEGUN && QueryEndable(m_queryType)) {
|
||||
m_resetCtr.fetch_add(1, std::memory_order_acquire);
|
||||
m_parent->End(this);
|
||||
}
|
||||
|
||||
m_parent->Begin(this);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue