mirror of https://github.com/PCSX2/pcsx2.git
OpenGLHostDisplay: Fix incorrect EndQuery() on shutdown
This commit is contained in:
parent
f2ca07033c
commit
256f7b9b0f
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue