From defc3c5205151ba2b33bd51139ebddb0e6bdeadb Mon Sep 17 00:00:00 2001 From: Rye Mutt <rye@alchemyviewer.org> Date: Wed, 11 Nov 2020 13:33:08 -0500 Subject: [PATCH] Use modern(since 10.6) gamma curve for png loading on macos --- indra/llimage/llpngwrapper.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/indra/llimage/llpngwrapper.cpp b/indra/llimage/llpngwrapper.cpp index 1e51e7375e7..3becd96824e 100644 --- a/indra/llimage/llpngwrapper.cpp +++ b/indra/llimage/llpngwrapper.cpp @@ -257,11 +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)) { -- GitLab