diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-07 18:14:28 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-07 18:50:25 +0300 |
commit | 905eeb0bc7f46efb95cb5450cc6c2ec27f02730c (patch) | |
tree | 79e17a6e7581f1cf6307d576f6c5dc50b4cb155c /source/blender/compositor/operations | |
parent | 66ec3c7e7f9c8485ee30b5d359965c631d08b38d (diff) |
Cleanup: move unit char/short/float to functions
This caused GCC 8.1 to crash at build time,
but was also not very nice use of macros.
Diffstat (limited to 'source/blender/compositor/operations')
-rw-r--r-- | source/blender/compositor/operations/COM_PreviewOperation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/compositor/operations/COM_PreviewOperation.cpp b/source/blender/compositor/operations/COM_PreviewOperation.cpp index aa667884de6..2845b972f65 100644 --- a/source/blender/compositor/operations/COM_PreviewOperation.cpp +++ b/source/blender/compositor/operations/COM_PreviewOperation.cpp @@ -105,7 +105,7 @@ void PreviewOperation::executeRegion(rcti *rect, unsigned int /*tileNumber*/) color[3] = 1.0f; this->m_input->readSampled(color, rx, ry, COM_PS_NEAREST); IMB_colormanagement_processor_apply_v4(cm_processor, color); - F4TOCHAR4(color, this->m_outputBuffer + offset); + rgba_float_to_uchar(this->m_outputBuffer + offset, color); offset += 4; } } |