summaryrefslogtreecommitdiff
path: root/indra/newview/lldrawpoolalpha.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2013-05-31 13:01:57 -0500
committerDave Parks <davep@lindenlab.com>2013-05-31 13:01:57 -0500
commita16d32e82edb19b6a3df6516c9726ac5913c1689 (patch)
tree592ea8e6cace33ef58b37ce0d15abef29c07ef18 /indra/newview/lldrawpoolalpha.cpp
parent08f9ef92399ab4abdc8652c48c85c1110b907e37 (diff)
Fix for uninitialized texture gamma on fullbright alpha objects.
Diffstat (limited to 'indra/newview/lldrawpoolalpha.cpp')
-rwxr-xr-xindra/newview/lldrawpoolalpha.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/lldrawpoolalpha.cpp b/indra/newview/lldrawpoolalpha.cpp
index 145cd02668..5ed8bbca50 100755
--- a/indra/newview/lldrawpoolalpha.cpp
+++ b/indra/newview/lldrawpoolalpha.cpp
@@ -95,7 +95,9 @@ void LLDrawPoolAlpha::beginPostDeferredPass(S32 pass)
{
simple_shader = &gDeferredAlphaProgram;
fullbright_shader = &gObjectFullbrightProgram;
-
+ fullbright_shader->bind();
+ fullbright_shader->uniform1f(LLShaderMgr::TEXTURE_GAMMA, 2.2f);
+ fullbright_shader->unbind();
//prime simple shader (loads shadow relevant uniforms)
gPipeline.bindDeferredShader(*simple_shader);
}