1
0
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:
Philip Rebohle 2019-04-01 02:58:02 +02:00
parent 70510bab9a
commit 8702374bf7
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

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