Skip to content
Snippets Groups Projects
Commit b411179b authored by Graham Linden's avatar Graham Linden
Browse files

NORSPEC-314 make work-around apply to all Macs for now

parent 18c7ef32
No related branches found
No related tags found
No related merge requests found
...@@ -657,18 +657,13 @@ void LLDrawPoolFullbrightAlphaMask::beginPostDeferredPass(S32 pass) ...@@ -657,18 +657,13 @@ void LLDrawPoolFullbrightAlphaMask::beginPostDeferredPass(S32 pass)
else else
{ {
// Work-around until we can figure out why the right shader causes
// the GeForce driver to go tango uniform on OS X 10.6.8 only
//
#if GE_FORCE_WORKAROUND #if GE_FORCE_WORKAROUND
// Work-around until we can figure out why the right shader causes gObjectFullbrightAlphaMaskProgram.bind();
// the GeForce driver to go tango uniform on OS X 10.6.8 only gObjectFullbrightAlphaMaskProgram.uniform1f(LLShaderMgr::TEXTURE_GAMMA, 2.2f);
// #else
if (gGLManager.mIsMobileGF)
{
gObjectFullbrightAlphaMaskProgram.bind();
gObjectFullbrightAlphaMaskProgram.uniform1f(LLShaderMgr::TEXTURE_GAMMA, 2.2f);
return;
}
#endif
if (LLPipeline::sUnderWaterRender) if (LLPipeline::sUnderWaterRender)
{ {
gDeferredFullbrightAlphaMaskWaterProgram.bind(); gDeferredFullbrightAlphaMaskWaterProgram.bind();
...@@ -679,7 +674,9 @@ void LLDrawPoolFullbrightAlphaMask::beginPostDeferredPass(S32 pass) ...@@ -679,7 +674,9 @@ void LLDrawPoolFullbrightAlphaMask::beginPostDeferredPass(S32 pass)
gDeferredFullbrightAlphaMaskProgram.bind(); gDeferredFullbrightAlphaMaskProgram.bind();
gDeferredFullbrightAlphaMaskProgram.uniform1f(LLShaderMgr::TEXTURE_GAMMA, 2.2f); gDeferredFullbrightAlphaMaskProgram.uniform1f(LLShaderMgr::TEXTURE_GAMMA, 2.2f);
} }
#endif
} }
} }
void LLDrawPoolFullbrightAlphaMask::renderPostDeferred(S32 pass) void LLDrawPoolFullbrightAlphaMask::renderPostDeferred(S32 pass)
...@@ -699,16 +696,12 @@ void LLDrawPoolFullbrightAlphaMask::endPostDeferredPass(S32 pass) ...@@ -699,16 +696,12 @@ void LLDrawPoolFullbrightAlphaMask::endPostDeferredPass(S32 pass)
else else
{ {
#if GE_FORCE_WORKAROUND // Work-around until we can figure out why the right shader causes
// Work-around until we can figure out why the right shader causes // the GeForce driver to go tango uniform on OS X 10.6.8 only
// the GeForce driver to go tango uniform on OS X 10.6.8 only //
// #if GE_FORCE_WORKAROUND
if (gGLManager.mIsMobileGF) gObjectFullbrightAlphaMaskProgram.unbind();
{ #else
gObjectFullbrightAlphaMaskProgram.unbind();
}
else
#endif
if (LLPipeline::sUnderWaterRender) if (LLPipeline::sUnderWaterRender)
{ {
gDeferredFullbrightAlphaMaskWaterProgram.unbind(); gDeferredFullbrightAlphaMaskWaterProgram.unbind();
...@@ -717,6 +710,7 @@ void LLDrawPoolFullbrightAlphaMask::endPostDeferredPass(S32 pass) ...@@ -717,6 +710,7 @@ void LLDrawPoolFullbrightAlphaMask::endPostDeferredPass(S32 pass)
{ {
gDeferredFullbrightAlphaMaskProgram.unbind(); gDeferredFullbrightAlphaMaskProgram.unbind();
} }
#endif
} }
LLRenderPass::endRenderPass(pass); LLRenderPass::endRenderPass(pass);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment