Update ToGLES( fix occlusion query and other small things )

This commit is contained in:
nillerusr
2022-01-09 19:32:21 +03:00
parent d651c2b38d
commit ead7bfc155
17 changed files with 373 additions and 266 deletions

View File

@@ -163,7 +163,7 @@ void CGLMQuery::Start( void ) // "start counting"
}
else
{
gGL->glBeginQuery( GL_SAMPLES_PASSED, m_name );
gGL->glBeginQuery( GL_ANY_SAMPLES_PASSED, m_name );
}
}
break;
@@ -204,7 +204,7 @@ void CGLMQuery::Stop( void ) // "stop counting"
}
else
{
gGL->glEndQuery( GL_SAMPLES_PASSED ); // we are only putting the request-to-stop-counting into the cmd stream.
gGL->glEndQuery( GL_ANY_SAMPLES_PASSED ); // we are only putting the request-to-stop-counting into the cmd stream.
}
}
break;