summaryrefslogtreecommitdiff
path: root/lib/mesa/src/util/format_srgb.h
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2016-05-29 10:22:51 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2016-05-29 10:22:51 +0000
commitc9223eed3c16cd3e98a8f56dda953d8f299de0e3 (patch)
tree53e2a1c3f13bcf6b4ed201d7bc135e7213c94ebe /lib/mesa/src/util/format_srgb.h
parent6e8f2d062ab9c198239b9283b2b7ed12f4ea17d8 (diff)
Import Mesa 11.2.2
Diffstat (limited to 'lib/mesa/src/util/format_srgb.h')
-rw-r--r--lib/mesa/src/util/format_srgb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mesa/src/util/format_srgb.h b/lib/mesa/src/util/format_srgb.h
index 4a8d73f12..34b50afe3 100644
--- a/lib/mesa/src/util/format_srgb.h
+++ b/lib/mesa/src/util/format_srgb.h
@@ -57,7 +57,7 @@ util_format_linear_to_srgb_helper_table[104];
static inline float
util_format_linear_to_srgb_float(float cl)
{
- if (cl < 0.0f)
+ if (cl <= 0.0f)
return 0.0f;
else if (cl < 0.0031308f)
return 12.92f * cl;