Fixed the piecewise function in linearToGamma to use <= instead of < when determining whether to use the linear part of the function.

This commit is contained in:
Alex Szpakowski
2016-01-13 21:23:56 -04:00
parent a95235ffa1
commit 314a82b126
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -213,7 +213,7 @@ float Math::gammaToLinear(float c) const
**/
float Math::linearToGamma(float c) const
{
if (c < 0.0031308f)
if (c <= 0.0031308f)
return c * 12.92f;
else
return 1.055f * powf(c, 1.0f / 2.4f) - 0.055f;