diff options
Diffstat (limited to 'source/blender/compositor/operations/COM_ConvertColorToValueProg.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_ConvertColorToValueProg.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/compositor/operations/COM_ConvertColorToValueProg.cpp b/source/blender/compositor/operations/COM_ConvertColorToValueProg.cpp index 17bd34d51b0..3a65519864a 100644 --- a/source/blender/compositor/operations/COM_ConvertColorToValueProg.cpp +++ b/source/blender/compositor/operations/COM_ConvertColorToValueProg.cpp @@ -34,11 +34,11 @@ void ConvertColorToValueProg::initExecution() this->m_inputOperation = this->getInputSocketReader(0); } -void ConvertColorToValueProg::executePixel(float *outputValue, float x, float y, PixelSampler sampler) +void ConvertColorToValueProg::executePixel(float output[4], float x, float y, PixelSampler sampler) { float inputColor[4]; this->m_inputOperation->read(&inputColor[0], x, y, sampler); - outputValue[0] = (inputColor[0] + inputColor[1] + inputColor[2]) / 3.0f; + output[0] = (inputColor[0] + inputColor[1] + inputColor[2]) / 3.0f; } void ConvertColorToValueProg::deinitExecution() |