OpenGLHostDisplay: Don't assert when reading back last query

This commit is contained in:
Connor McLaughlin 2022-09-18 12:02:38 +10:00
parent 239b585d8c
commit 1e6abc1d64

View file

@ -993,8 +993,6 @@ void OpenGLHostDisplay::PopTimestampQuery()
GLint available = 0; GLint available = 0;
GetQueryObjectiv(m_timestamp_queries[m_read_timestamp_query], GL_QUERY_RESULT_AVAILABLE, &available); GetQueryObjectiv(m_timestamp_queries[m_read_timestamp_query], GL_QUERY_RESULT_AVAILABLE, &available);
DebugAssert(m_read_timestamp_query != m_write_timestamp_query);
if (!available) if (!available)
break; break;