diff options
| author | Geenz <geenz@geenzo.com> | 2019-03-30 03:18:02 -0700 |
|---|---|---|
| committer | Geenz <geenz@geenzo.com> | 2019-03-30 03:18:02 -0700 |
| commit | 2513aa0ed1331ca022fb8bbd7442b1ba750ead4d (patch) | |
| tree | a600bb791f27a974d42742ab840daac82dbb040b /indra/llrender/llimagegl.cpp | |
| parent | 9b34751614cf67ceddcae6e67f751ab02519b6a5 (diff) | |
Additional gamma correction work: start moving over to EXT_texture_sRGB_decode.
Diffstat (limited to 'indra/llrender/llimagegl.cpp')
| -rw-r--r-- | indra/llrender/llimagegl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llrender/llimagegl.cpp b/indra/llrender/llimagegl.cpp index 2d526a2113..8b51bf4b9f 100644 --- a/indra/llrender/llimagegl.cpp +++ b/indra/llrender/llimagegl.cpp @@ -1385,12 +1385,12 @@ BOOL LLImageGL::createGLTexture(S32 discard_level, const LLImageRaw* imageraw, S mFormatType = GL_UNSIGNED_BYTE; break; case 3: - mFormatInternal = GL_RGB8; + mFormatInternal = GL_SRGB8; mFormatPrimary = GL_RGB; mFormatType = GL_UNSIGNED_BYTE; break; case 4: - mFormatInternal = GL_RGBA8; + mFormatInternal = GL_SRGB8_ALPHA8; mFormatPrimary = GL_RGBA; mFormatType = GL_UNSIGNED_BYTE; break; |
