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:
parent
76e6b2764b
commit
ecc2302389
@ -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…
x
Reference in New Issue
Block a user