diff options
author | Erik Kundiman <erik@megapahit.org> | 2023-09-06 12:29:13 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2023-09-06 12:29:13 +0800 |
commit | 211ab43ba2cd23052534ac6817309c52969590d1 (patch) | |
tree | 39c57f973e620c64190784bb02cf23c93ef04b74 /indra | |
parent | 39916024f4878739a64c785cdaa16cdccc171e7f (diff) |
GL TIME_ELAPSED_EXT as alternative to TIME_ELAPSED
Diffstat (limited to 'indra')
-rw-r--r-- | indra/llrender/llglslshader.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llrender/llglslshader.cpp b/indra/llrender/llglslshader.cpp index 308ec1a771..58a9e28270 100644 --- a/indra/llrender/llglslshader.cpp +++ b/indra/llrender/llglslshader.cpp @@ -272,6 +272,8 @@ void LLGLSLShader::placeProfileQuery() #if GL_VERSION_3_3 glBeginQuery(GL_TIME_ELAPSED, mTimerQuery); #endif // GL_VERSION_3_3 +#else + glBeginQuery(GL_TIME_ELAPSED_EXT, mTimerQuery); #endif // GL_VERSION_1_5 #endif } @@ -284,6 +286,8 @@ void LLGLSLShader::readProfileQuery(U32 count, U32 mode) glEndQuery(GL_TIME_ELAPSED); #endif // GL_VERSION_3_3 glEndQuery(GL_SAMPLES_PASSED); +#else + glEndQuery(GL_TIME_ELAPSED_EXT); #endif // GL_VERSION_1_5 GLuint64 time_elapsed = 0; |