diff options
author | Graham Linden <graham@lindenlab.com> | 2013-06-18 10:54:16 -0700 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2013-06-18 10:54:16 -0700 |
commit | 0094cfabf05c483077a2f5497cf988a8d7f15807 (patch) | |
tree | 51a554321567bc2c648a26eee231a892a3539fd5 /indra/newview/pipeline.cpp | |
parent | 0dbe156e2317f8e34f2f0cfa65dc89ea30cd18f1 (diff) | |
parent | 1eb20a8522c031e2a2934765625a7537c4252c5f (diff) |
Merge vwr-dev-mat
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rwxr-xr-x | indra/newview/pipeline.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index 48f29b3237..37a0e4c219 100755 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -1190,13 +1190,7 @@ void LLPipeline::releaseLUTBuffers() { if (mLightFunc) { - U32 pix_format = GL_R16F; -#if LL_DARWIN - // Need to work around limited precision with 10.6.8 and older drivers - // - pix_format = GL_R32F; -#endif - LLImageGL::deleteTextures(LLTexUnit::TT_TEXTURE, pix_format, 0, 1, &mLightFunc); + LLImageGL::deleteTextures(LLTexUnit::TT_TEXTURE, GL_R16F, 0, 1, &mLightFunc); mLightFunc = 0; } } @@ -1373,7 +1367,7 @@ void LLPipeline::createLUTBuffers() // This is fine, given we only need to create our LUT once per buffer initialization. spec *= (((n + 2) * (n + 4)) / (8 * F_PI * (powf(2, -n/2) + n))); - // Since we use R16/32F, we no longer have a dynamic range issue we need to work around here. + // Since we use R16F, we no longer have a dynamic range issue we need to work around here. // Though some older drivers may not like this, newer drivers shouldn't have this problem. ls[y*lightResX+x] = spec; @@ -1407,7 +1401,7 @@ void LLPipeline::createLUTBuffers() LLImageGL::setManualImage(LLTexUnit::getInternalType(LLTexUnit::TT_TEXTURE), 0, pix_format, lightResX, lightResY, GL_RED, GL_FLOAT, ls, false); //LLImageGL::setManualImage(LLTexUnit::getInternalType(LLTexUnit::TT_TEXTURE), 0, GL_UNSIGNED_BYTE, lightResX, lightResY, GL_RED, GL_UNSIGNED_BYTE, ls, false); gGL.getTexUnit(0)->setTextureAddressMode(LLTexUnit::TAM_CLAMP); - gGL.getTexUnit(0)->setTextureFilteringOption(LLTexUnit::TFO_POINT); + gGL.getTexUnit(0)->setTextureFilteringOption(LLTexUnit::TFO_TRILINEAR); delete [] ls; } |