diff options
author | Ptolemy <ptolemy@lindenlab.com> | 2021-12-17 13:12:41 -0800 |
---|---|---|
committer | Ptolemy <ptolemy@lindenlab.com> | 2021-12-17 13:12:41 -0800 |
commit | 8d98804ba4f58dc7fef850ee7534af6e216b1d9c (patch) | |
tree | 02162b5ea5d3b0f3f70064137687989df280ce9b /indra/newview/llviewershadermgr.cpp | |
parent | f22d659c6f2d9d99749be532730c09d283598e2e (diff) |
SL-16492: Fix for HAS_ALPHA_MASK permutation not being set for fullbrightF.glsl when rigged mesh has alpha mask.
Diffstat (limited to 'indra/newview/llviewershadermgr.cpp')
-rw-r--r-- | indra/newview/llviewershadermgr.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llviewershadermgr.cpp b/indra/newview/llviewershadermgr.cpp index 829e7f8add..c97b1d914b 100644 --- a/indra/newview/llviewershadermgr.cpp +++ b/indra/newview/llviewershadermgr.cpp @@ -264,10 +264,12 @@ bool make_rigged_variant(LLGLSLShader& shader, LLGLSLShader& riggedShader) riggedShader.mName = llformat("Skinned %s", shader.mName.c_str()); riggedShader.mFeatures = shader.mFeatures; riggedShader.mFeatures.hasObjectSkinning = true; + riggedShader.mDefines = shader.mDefines; // NOTE: Must come before addPermutation riggedShader.addPermutation("HAS_SKIN", "1"); riggedShader.mShaderFiles = shader.mShaderFiles; riggedShader.mShaderLevel = shader.mShaderLevel; riggedShader.mShaderGroup = shader.mShaderGroup; + shader.mRiggedVariant = &riggedShader; return riggedShader.createShader(NULL, NULL); } |