diff options
author | RunitaiLinden <davep@lindenlab.com> | 2023-04-11 15:09:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-11 15:09:58 -0500 |
commit | 2b2154f0217758b27b544d066024d922ba234d51 (patch) | |
tree | fafed45d3e9cc21b04e2babf6bf19d1a476fc88a /indra/llrender/llglslshader.cpp | |
parent | 474739226433a74cdca05a949586139a9c9c0bbd (diff) |
SL-19564 Rebalance exposure and sky. Hack legacy diffuse map saturation and brightness to allow ACES Hill all the time.
Diffstat (limited to 'indra/llrender/llglslshader.cpp')
-rw-r--r-- | indra/llrender/llglslshader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llrender/llglslshader.cpp b/indra/llrender/llglslshader.cpp index 61a17e5f52..d27528296f 100644 --- a/indra/llrender/llglslshader.cpp +++ b/indra/llrender/llglslshader.cpp @@ -1099,7 +1099,8 @@ S32 LLGLSLShader::bindTexture(S32 uniform, LLRenderTarget* texture, bool depth, if (uniform > -1) { - gGL.getTexUnit(uniform)->bindManual(texture->getUsage(), texture->getTexture(0)); + bool has_mips = mode == LLTexUnit::TFO_TRILINEAR || mode == LLTexUnit::TFO_ANISOTROPIC; + gGL.getTexUnit(uniform)->bindManual(texture->getUsage(), texture->getTexture(0), has_mips); gGL.getTexUnit(uniform)->setTextureFilteringOption(mode); |