summaryrefslogtreecommitdiff
path: root/indra/llrender/llglslshader.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2023-01-24 12:50:17 -0600
committerDave Parks <davep@lindenlab.com>2023-01-24 12:50:17 -0600
commita851aa83e705fa4a1c78919cfcac6709cfb1a875 (patch)
treef60abae0c94e459533f4f9f8b24564d1b260a6d9 /indra/llrender/llglslshader.cpp
parentbc6424779cda6ad03dbb59c2c14b91a7aa82bca9 (diff)
SL-18958 Fix for broken water distortion map and depth buffer. Incidental decruft.
Diffstat (limited to 'indra/llrender/llglslshader.cpp')
-rw-r--r--indra/llrender/llglslshader.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/llrender/llglslshader.cpp b/indra/llrender/llglslshader.cpp
index 982b2a847a..42b7cc46b3 100644
--- a/indra/llrender/llglslshader.cpp
+++ b/indra/llrender/llglslshader.cpp
@@ -1134,6 +1134,11 @@ S32 LLGLSLShader::unbindTexture(S32 uniform, LLTexUnit::eTextureType mode)
return uniform;
}
+S32 LLGLSLShader::getTextureChannel(S32 uniform) const
+{
+ return mTexture[uniform];
+}
+
S32 LLGLSLShader::enableTexture(S32 uniform, LLTexUnit::eTextureType mode, LLTexUnit::eTextureColorSpace space)
{
LL_PROFILE_ZONE_SCOPED_CATEGORY_SHADER;