summaryrefslogtreecommitdiff
path: root/indra/llrender
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2023-09-06 12:29:13 +0800
committerErik Kundiman <erik@megapahit.org>2023-09-06 12:29:13 +0800
commit211ab43ba2cd23052534ac6817309c52969590d1 (patch)
tree39c57f973e620c64190784bb02cf23c93ef04b74 /indra/llrender
parent39916024f4878739a64c785cdaa16cdccc171e7f (diff)
GL TIME_ELAPSED_EXT as alternative to TIME_ELAPSED
Diffstat (limited to 'indra/llrender')
-rw-r--r--indra/llrender/llglslshader.cpp4
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;