diff options
author | Dave Parks <davep@lindenlab.com> | 2011-05-25 15:53:45 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-05-25 15:53:45 -0500 |
commit | dbefd976ed137e04b7f43949b029ccb3db6a5399 (patch) | |
tree | f220831b20c6c2855ef75a84e1d2ecf0ee0ab709 /indra/llrender/llglslshader.cpp | |
parent | 8e728befa57bcea0981179709dd5f13af1cd29a8 (diff) | |
parent | 9eea451a82379a61fa4a6cc2a55274e06cecbd58 (diff) |
merge
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 257bcd9380..2e7147a3b4 100644 --- a/indra/llrender/llglslshader.cpp +++ b/indra/llrender/llglslshader.cpp @@ -293,7 +293,8 @@ void LLGLSLShader::mapUniform(GLint index, const vector<string> * uniforms) GLint LLGLSLShader::mapUniformTextureChannel(GLint location, GLenum type) { - if (type >= GL_SAMPLER_1D_ARB && type <= GL_SAMPLER_2D_RECT_SHADOW_ARB) + if (type >= GL_SAMPLER_1D_ARB && type <= GL_SAMPLER_2D_RECT_SHADOW_ARB || + type == GL_SAMPLER_2D_MULTISAMPLE) { //this here is a texture glUniform1iARB(location, mActiveTextureChannels); LL_DEBUGS("ShaderLoading") << "Assigned to texture channel " << mActiveTextureChannels << LL_ENDL; |