summaryrefslogtreecommitdiff
path: root/indra/llappearance/lltexlayer.cpp
diff options
context:
space:
mode:
authorIma Mechanique <ima.mechanique@secondlife.com>2013-10-18 17:40:44 +0100
committerIma Mechanique <ima.mechanique@secondlife.com>2013-10-18 17:40:44 +0100
commit37b705c96264ed28896d687e565d1112939e9123 (patch)
treea8d3604c0fc2bf117bbcabb05b674cda8a20c0df /indra/llappearance/lltexlayer.cpp
parent4027486dbbe18c644eb679a49259ce201a5f9f59 (diff)
parentc7057c141c38492bfdc2bfe9d82de97a7364f01b (diff)
Merge 3.5.8-release
Diffstat (limited to 'indra/llappearance/lltexlayer.cpp')
-rw-r--r--indra/llappearance/lltexlayer.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/llappearance/lltexlayer.cpp b/indra/llappearance/lltexlayer.cpp
index f951a982e5..a3a8616864 100644
--- a/indra/llappearance/lltexlayer.cpp
+++ b/indra/llappearance/lltexlayer.cpp
@@ -1123,7 +1123,10 @@ BOOL LLTexLayer::render(S32 x, S32 y, S32 width, S32 height)
// *TODO: Is this correct?
//gPipeline.disableLights();
stop_glerror();
- glDisable(GL_LIGHTING);
+ if (!LLGLSLShader::sNoFixedFunction)
+ {
+ glDisable(GL_LIGHTING);
+ }
stop_glerror();
bool use_shaders = LLGLSLShader::sNoFixedFunction;