[d3d9] Fix query reset counter underflow

This commit is contained in:
Robin Kertels 2022-11-07 22:25:05 +01:00 committed by Joshie
parent 76e6b2764b
commit ecc2302389
1 changed files with 3 additions and 1 deletions

View File

@ -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);