More informative light func tex binding message

meow-7.2.2
Graham Madarasz 2013-05-01 14:53:59 -07:00
parent 78004e74f2
commit ef7c661dc0
1 changed files with 2 additions and 1 deletions

View File

@ -7833,11 +7833,12 @@ void LLPipeline::bindDeferredShader(LLGLSLShader& shader, U32 light_index, U32 n
channel = shader.enableTexture(LLShaderMgr::DEFERRED_LIGHTFUNC);
if (channel > -1)
{
llinfos << "Shader " << shader.mName << " binding light func texture on uniform index " << channel << llendl;
gGL.getTexUnit(channel)->bindManual(LLTexUnit::TT_TEXTURE, mLightFunc);
}
else
{
llinfos << "Failed to bind light func texture. Ugly lighting dead ahead!" << llendl;
llinfos << "Shader " << shader.mName << " failed to bind light func texture. Ugly lighting dead ahead!" << llendl;
}
stop_glerror();