mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-28 19:50:06 +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 (dwIssueFlags == D3DISSUE_BEGIN) {
|
||||||
if (QueryBeginnable(m_queryType)) {
|
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->End(this);
|
||||||
|
}
|
||||||
|
|
||||||
m_parent->Begin(this);
|
m_parent->Begin(this);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user