1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-23 09:19:41 +01:00

[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

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