summaryrefslogtreecommitdiff
path: root/indra/llimage
diff options
context:
space:
mode:
authorRye Mutt <rye@alchemyviewer.org>2022-10-30 18:05:34 -0400
committerRye Mutt <rye@alchemyviewer.org>2022-10-30 18:05:34 -0400
commit0c36fed11056511872afae14a39a88f5e46be0fc (patch)
tree13392990f888715e40bbd27e17bce6076aebfe60 /indra/llimage
parent971fd6f8433b07bbd51ef83f2de518ef8b20d07f (diff)
Correct macOS png loader to use a default gamma of 2.2 as apple has done since OS 10.6
Diffstat (limited to 'indra/llimage')
-rw-r--r--indra/llimage/llpngwrapper.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/indra/llimage/llpngwrapper.cpp b/indra/llimage/llpngwrapper.cpp
index f7dc6272cf..cad7c00042 100644
--- a/indra/llimage/llpngwrapper.cpp
+++ b/indra/llimage/llpngwrapper.cpp
@@ -257,12 +257,7 @@ void LLPngWrapper::normalizeImage()
png_set_strip_16(mReadPngPtr);
}
-#if LL_DARWIN
- const F64 SCREEN_GAMMA = 1.8;
-#else
const F64 SCREEN_GAMMA = 2.2;
-#endif
-
if (png_get_gAMA(mReadPngPtr, mReadInfoPtr, &mGamma))
{
png_set_gamma(mReadPngPtr, SCREEN_GAMMA, mGamma);