summaryrefslogtreecommitdiff
path: root/indra/llrender/llglslshader.cpp
diff options
context:
space:
mode:
authorRye <rye@lindenlab.com>2025-02-10 14:10:47 -0500
committerRye <rye@lindenlab.com>2025-02-11 05:04:10 -0500
commitfd94dc0cd0afbca1446945522805dd833d45be7f (patch)
tree8ddbc5f1c72ce80106dca9c77583449ee4e0bb46 /indra/llrender/llglslshader.cpp
parent0ea0edb5d97453225130fbd261e718fb633cc56e (diff)
Disable old GPU hacks on macos when running against Apple GPU
Diffstat (limited to 'indra/llrender/llglslshader.cpp')
-rw-r--r--indra/llrender/llglslshader.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/llrender/llglslshader.cpp b/indra/llrender/llglslshader.cpp
index 0841c0e943..66f38c9281 100644
--- a/indra/llrender/llglslshader.cpp
+++ b/indra/llrender/llglslshader.cpp
@@ -421,8 +421,11 @@ bool LLGLSLShader::createShader()
llassert_always(!mShaderFiles.empty());
#if LL_DARWIN
- // work-around missing mix(vec3,vec3,bvec3)
- mDefines["OLD_SELECT"] = "1";
+ if(!gGLManager.mIsApple)
+ {
+ // work-around missing mix(vec3,vec3,bvec3)
+ mDefines["OLD_SELECT"] = "1";
+ }
#endif
mShaderHash = hash();