diff options
author | Brecht Van Lommel <brecht@blender.org> | 2021-10-21 20:25:38 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-10-22 14:03:03 +0300 |
commit | 282516e53eba9bb3aaddd67b2b099fea98bd4c1f (patch) | |
tree | 32fc55a41ea26bb4e8237db6924fa78176641760 /intern/cycles/integrator/pass_accessor.cpp | |
parent | 65dbeb1d81bff6c5742eb5f503b59207485041a9 (diff) |
Cleanup: refactor float/half conversions for clarity
Diffstat (limited to 'intern/cycles/integrator/pass_accessor.cpp')
-rw-r--r-- | intern/cycles/integrator/pass_accessor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/integrator/pass_accessor.cpp b/intern/cycles/integrator/pass_accessor.cpp index 4ef9ce7ef42..1308b03b06c 100644 --- a/intern/cycles/integrator/pass_accessor.cpp +++ b/intern/cycles/integrator/pass_accessor.cpp @@ -115,7 +115,7 @@ static void pad_pixels(const BufferParams &buffer_params, } if (destination.pixels_half_rgba) { - const half one = float_to_half(1.0f); + const half one = float_to_half_display(1.0f); half4 *pixel = destination.pixels_half_rgba + destination.offset; for (size_t i = 0; i < size; i++, pixel++) { |