diff options
author | Rider Linden <rider@lindenlab.com> | 2019-05-03 20:52:10 +0000 |
---|---|---|
committer | Rider Linden <rider@lindenlab.com> | 2019-05-03 20:52:10 +0000 |
commit | 217c6a86ec61963578ce3eb0c76ff3a96e63a995 (patch) | |
tree | dab3c478a6a0e85abb19b36e4c89ea21da8c2a8a /indra/llrender/llcubemap.cpp | |
parent | f67fe8fce7d84bc8687d409311518565d97a5fc5 (diff) | |
parent | 89c24095c6c1b778b93a4eb7ad398627f4d5479f (diff) |
Merged in graham_linden/viewer-eep-rc-fixes (pull request #378)
SL-11087, SL-11086, SL-11092, SL-11075, SL-11070, SL-11090, SL-11085
Diffstat (limited to 'indra/llrender/llcubemap.cpp')
-rw-r--r-- | indra/llrender/llcubemap.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/llrender/llcubemap.cpp b/indra/llrender/llcubemap.cpp index d425b8fa2d..5947bca670 100644 --- a/indra/llrender/llcubemap.cpp +++ b/indra/llrender/llcubemap.cpp @@ -79,9 +79,11 @@ void LLCubeMap::initGL() for (int i = 0; i < 6; i++) { mImages[i] = new LLImageGL(RESOLUTION, RESOLUTION, 4, FALSE); + #if USE_SRGB_DECODE if (mIssRGB) { mImages[i]->setExplicitFormat(GL_SRGB8_ALPHA8, GL_RGBA); } + #endif mImages[i]->setTarget(mTargets[i], LLTexUnit::TT_CUBE_MAP); mRawImages[i] = new LLImageRaw(RESOLUTION, RESOLUTION, 4); mImages[i]->createGLTexture(0, mRawImages[i], texname); |