From 0f1c3958da3fb475feead1620ba9414b0d44aae0 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Fri, 10 Oct 2014 15:11:23 +0200 Subject: [PATCH] Fix typo breaking compilation with rather strict flags (does not like implicit double to float conversion). --- intern/cycles/kernel/closure/bsdf_microfacet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intern/cycles/kernel/closure/bsdf_microfacet.h b/intern/cycles/kernel/closure/bsdf_microfacet.h index c48ebd0885b..8737b0e2d94 100644 --- a/intern/cycles/kernel/closure/bsdf_microfacet.h +++ b/intern/cycles/kernel/closure/bsdf_microfacet.h @@ -85,7 +85,7 @@ ccl_device_inline float approx_erfinvf_do(float x) const float c1 = -1.970840454f; const float c2 = -1.624906493f; const float c3 = 3.429567803f; - const float c4 = 1.641345311; + const float c4 = 1.641345311f; const float d1 = 3.543889200f; const float d2 = 1.637067800f; const float z = sqrtf(-logf((1.0f - x) * 0.5f));