Local light setting toggle behavior was incorrect with shaders enabled.

This commit is contained in:
Shyotl
2015-06-01 16:54:36 -05:00
parent d140d28af9
commit 7a9a4f3e1e

View File

@@ -1288,11 +1288,13 @@ S32 LLPipeline::setLightingDetail(S32 level)
}
level = llclamp(level, 0, getMaxLightingDetail());
//Bugfix: If setshaders was called with RenderLocalLights off then enabling RenderLocalLights later will not work. Reloading shaders fixes this.
if (level != mLightingDetail && LLGLSLShader::sNoFixedFunction)
if (level != mLightingDetail)
{
LLViewerShaderMgr::instance()->setShaders();
mLightingDetail = level;
if (LLGLSLShader::sNoFixedFunction)
LLViewerShaderMgr::instance()->setShaders();
}
mLightingDetail = level;
return mLightingDetail;
}