<p dir="ltr">Sure. R-B</p>
<div class="gmail_quote">On Nov 26, 2015 8:58 AM, "Neil Roberts" <<a href="mailto:neil@linux.intel.com">neil@linux.intel.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">When converting 0.0 it would be nice if it didn't do any arithmetic.<br>
---<br>
src/util/format_srgb.h | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/src/util/format_srgb.h b/src/util/format_srgb.h<br>
index 4a8d73f..34b50af 100644<br>
--- a/src/util/format_srgb.h<br>
+++ b/src/util/format_srgb.h<br>
@@ -57,7 +57,7 @@ util_format_linear_to_srgb_helper_table[104];<br>
static inline float<br>
util_format_linear_to_srgb_float(float cl)<br>
{<br>
- if (cl < 0.0f)<br>
+ if (cl <= 0.0f)<br>
return 0.0f;<br>
else if (cl < 0.0031308f)<br>
return 12.92f * cl;<br>
--<br>
1.9.3<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</blockquote></div>