diff options
author | Dave Parks <davep@lindenlab.com> | 2013-10-10 18:00:11 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2013-10-10 18:00:11 -0500 |
commit | 0e116741a050ca1525a4faa2696b5c318d31bc06 (patch) | |
tree | 52779b86d830f23254fde647028c57e91983028c /indra/llappearance | |
parent | f7158bc5afcec1da8b9d2d5a4ed86921e62d4959 (diff) |
MAINT-2968 Fix for crash on AMD hardware running current drivers.
Diffstat (limited to 'indra/llappearance')
-rw-r--r-- | indra/llappearance/lltexlayer.cpp | 5 |
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; |