Fix wrong count being used in GL loop ending active queries

This commit is contained in:
baldurk
2020-10-22 15:38:58 +01:00
parent 8bdd9585f5
commit db7b260629
+2 -2
View File
@@ -5177,13 +5177,13 @@ ReplayStatus WrappedOpenGL::ContextReplayLog(CaptureState readType, uint32_t sta
if(IsActiveReplaying(m_State) && !m_FetchCounters)
{
for(size_t i = 0; i < 8; i++)
for(size_t i = 0; i < MAX_QUERIES; i++)
{
GLenum q = QueryEnum(i);
if(q == eGL_NONE)
break;
int indices = IsGLES ? 1 : 8; // GLES does not support indices
int indices = IsGLES ? 1 : MAX_QUERY_INDICES; // GLES does not support indices
for(int j = 0; j < indices; j++)
{
if(m_ActiveQueries[i][j])