mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-12 04:08:52 +01:00
[dxvk] Do not invalidate iterator before disabling queries
Reported-by: Joshua Ashton <joshua@froggi.es>
This commit is contained in:
parent
70510bab9a
commit
8702374bf7
@ -320,10 +320,9 @@ namespace dxvk {
|
|||||||
query);
|
query);
|
||||||
|
|
||||||
if (iter != m_activeQueries.end()) {
|
if (iter != m_activeQueries.end()) {
|
||||||
m_activeQueries.erase(iter);
|
|
||||||
|
|
||||||
if (m_activeTypes & getQueryTypeBit((*iter)->type()))
|
if (m_activeTypes & getQueryTypeBit((*iter)->type()))
|
||||||
endSingleQuery(cmd, query);
|
endSingleQuery(cmd, query);
|
||||||
|
m_activeQueries.erase(iter);
|
||||||
|
|
||||||
query->end();
|
query->end();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user