Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Fix the HLG OOTF again.
Wolthera van Hövell tot Westerflier3160c1aa9230
diff --git a/libs/pigment/KoColorTransferFunctions.h b/libs/pigment/KoColorTransferFunctions.hindex c5a096bba7..351caedbb5 100644--- a/libs/pigment/KoColorTransferFunctions.h+++ b/libs/pigment/KoColorTransferFunctions.h@@ -97,7 +97,7 @@ ALWAYS_INLINE void removeHLGOOTF(float *rgb,const float luma = (rgb[0] * static_cast<float>(lumaCoefficients[0]))+ (rgb[1] * static_cast<float>(lumaCoefficients[1]))+ (rgb[2] * static_cast<float>(lumaCoefficients[2]));- const float multiplier = powf(luma, 1.0/((1.f - gamma) /(gamma))) ;+ const float multiplier = powf(luma, gamma-1.f) ;rgb[0] *= multiplier;rgb[1] *= multiplier;rgb[2] *= multiplier;