summaryrefslogtreecommitdiff
path: root/indra/llrender/llglslshader.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2023-09-11 13:49:35 +0800
committerErik Kundiman <erik@megapahit.org>2023-09-11 13:49:35 +0800
commit90b837f670441311623cc8ed05c54e5d3e22b19a (patch)
tree0f8433531baffba3926b023c121280760b778f09 /indra/llrender/llglslshader.cpp
parent6109cd400049f95d800cb2d847db9d6659e48011 (diff)
Assume GL_ANY_SAMPLES_PASSED is supported
Diffstat (limited to 'indra/llrender/llglslshader.cpp')
-rw-r--r--indra/llrender/llglslshader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llrender/llglslshader.cpp b/indra/llrender/llglslshader.cpp
index 58f2a4d91d..c0485d3b97 100644
--- a/indra/llrender/llglslshader.cpp
+++ b/indra/llrender/llglslshader.cpp
@@ -239,7 +239,7 @@ void LLGLSLShader::placeProfileQuery(bool for_runtime)
if (!for_runtime)
{
- glBeginQuery(GL_SAMPLES_PASSED, mSamplesQuery);
+ glBeginQuery(GL_ANY_SAMPLES_PASSED, mSamplesQuery);
#if GL_VERSION_3_0
glBeginQuery(GL_PRIMITIVES_GENERATED, mPrimitivesQuery);
#endif
@@ -258,7 +258,7 @@ bool LLGLSLShader::readProfileQuery(bool for_runtime, bool force_read)
#endif
if (!for_runtime)
{
- glEndQuery(GL_SAMPLES_PASSED);
+ glEndQuery(GL_ANY_SAMPLES_PASSED);
#if GL_VERSION_3_0
glEndQuery(GL_PRIMITIVES_GENERATED);
#endif