diff options
| author | Graham Linden <graham@lindenlab.com> | 2019-05-14 07:57:35 -0700 |
|---|---|---|
| committer | Graham Linden <graham@lindenlab.com> | 2019-05-14 07:57:35 -0700 |
| commit | a984c5e66acbc0903cfdbd175e01c347bdb59cb7 (patch) | |
| tree | b84162668c0c1333b3f1b6cf5ade27d10d6ecff4 /indra/newview/llvosky.cpp | |
| parent | 041d92b6bd4212bafd51567a52b4e2147da3132a (diff) | |
| parent | b143aa96fcd6d16558464c98bcfd9984f7d29750 (diff) | |
Merge
Diffstat (limited to 'indra/newview/llvosky.cpp')
| -rw-r--r-- | indra/newview/llvosky.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/newview/llvosky.cpp b/indra/newview/llvosky.cpp index a181fdaf50..7e0f377953 100644 --- a/indra/newview/llvosky.cpp +++ b/indra/newview/llvosky.cpp @@ -207,10 +207,14 @@ void LLSkyTex::create(const F32 brightness) void LLSkyTex::createGLImage(S32 which) { - if (LLPipeline::RenderDeferred) { +#if USE_SRGB_DECODE + if (LLPipeline::RenderDeferred) + { mTexture[which]->setExplicitFormat(GL_SRGB8_ALPHA8, GL_RGBA); } - else { + else +#endif + { mTexture[which]->setExplicitFormat(GL_RGBA8, GL_RGBA); } mTexture[which]->createGLTexture(0, mImageRaw[which], 0, TRUE, LLGLTexture::LOCAL); |
