diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-08-10 18:07:24 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-08-10 18:07:24 +0400 |
commit | 94a3945cf9de0913b75f83b26e2e62b3bc1b0c07 (patch) | |
tree | 89aeabd20d883137b69815d9580f3bc108531a7e /source/blender/compositor/operations/COM_SetColorOperation.cpp | |
parent | e8772477894a6fd8c09488b488fdcc1af432da1b (diff) |
code cleanup: compositor - define size for executePixel function output float array
Diffstat (limited to 'source/blender/compositor/operations/COM_SetColorOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_SetColorOperation.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/compositor/operations/COM_SetColorOperation.cpp b/source/blender/compositor/operations/COM_SetColorOperation.cpp index 4b6b7cf50c5..7aa2a8a27cd 100644 --- a/source/blender/compositor/operations/COM_SetColorOperation.cpp +++ b/source/blender/compositor/operations/COM_SetColorOperation.cpp @@ -27,12 +27,12 @@ SetColorOperation::SetColorOperation() : NodeOperation() this->addOutputSocket(COM_DT_COLOR); } -void SetColorOperation::executePixel(float *outputValue, float x, float y, PixelSampler sampler) +void SetColorOperation::executePixel(float output[4], float x, float y, PixelSampler sampler) { - outputValue[0] = this->m_channel1; - outputValue[1] = this->m_channel2; - outputValue[2] = this->m_channel3; - outputValue[3] = this->m_channel4; + output[0] = this->m_channel1; + output[1] = this->m_channel2; + output[2] = this->m_channel3; + output[3] = this->m_channel4; } void SetColorOperation::determineResolution(unsigned int resolution[2], unsigned int preferredResolution[2]) |