diff options
| author | RunitaiLinden <davep@lindenlab.com> | 2024-02-08 15:34:01 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-08 15:34:01 -0600 |
| commit | ba9bae05706982f982df8d615a28ac9c7c3c51fe (patch) | |
| tree | 4b688dcb22e6c65c7c8edde6e5a0d649ecd3751c /indra/newview/llenvironment.cpp | |
| parent | 4f6e3acece507b8be66b76db5609bdaec41307d4 (diff) | |
| parent | c3d4f571aa5522e3028842c6d7caa977819a7393 (diff) | |
Merge pull request #715 from secondlife/materials_featurette/mirrors
Mirrors pre-release
Diffstat (limited to 'indra/newview/llenvironment.cpp')
| -rw-r--r-- | indra/newview/llenvironment.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/llenvironment.cpp b/indra/newview/llenvironment.cpp index 60c2682078..affea3f69c 100644 --- a/indra/newview/llenvironment.cpp +++ b/indra/newview/llenvironment.cpp @@ -1675,8 +1675,6 @@ void LLEnvironment::update(const LLViewerCamera * cam) updateSettingsUniforms(); - // *TODO: potential optimization - this block may only need to be - // executed some of the time. For example for water shaders only. { LLViewerShaderMgr::shader_iter shaders_iter, end_shaders; end_shaders = LLViewerShaderMgr::instance()->endShaders(); @@ -1687,6 +1685,10 @@ void LLEnvironment::update(const LLViewerCamera * cam) || shaders_iter->mShaderGroup == LLGLSLShader::SG_WATER)) { shaders_iter->mUniformsDirty = TRUE; + if (shaders_iter->mRiggedVariant) + { + shaders_iter->mRiggedVariant->mUniformsDirty = TRUE; + } } } } |
