OpenGLHostDisplay: Fix incorrect EndQuery() on shutdown

This commit is contained in:
Connor McLaughlin 2022-12-17 14:48:17 +10:00 committed by lightningterror
parent f2ca07033c
commit 256f7b9b0f
1 changed files with 1 additions and 1 deletions

View File

@ -392,7 +392,7 @@ void OpenGLHostDisplay::DestroyTimestampQueries()
if (m_timestamp_query_started)
{
const auto EndQuery = gles ? glEndQueryEXT : glEndQuery;
EndQuery(m_timestamp_queries[m_write_timestamp_query]);
EndQuery(GL_TIME_ELAPSED);
}
DeleteQueries(static_cast<u32>(m_timestamp_queries.size()), m_timestamp_queries.data());