From 94a3945cf9de0913b75f83b26e2e62b3bc1b0c07 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 10 Aug 2012 14:07:24 +0000 Subject: code cleanup: compositor - define size for executePixel function output float array --- source/blender/compositor/operations/COM_MapValueOperation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/compositor/operations/COM_MapValueOperation.cpp') diff --git a/source/blender/compositor/operations/COM_MapValueOperation.cpp b/source/blender/compositor/operations/COM_MapValueOperation.cpp index 96e586ccef8..7acc431f7b5 100644 --- a/source/blender/compositor/operations/COM_MapValueOperation.cpp +++ b/source/blender/compositor/operations/COM_MapValueOperation.cpp @@ -34,7 +34,7 @@ void MapValueOperation::initExecution() this->m_inputOperation = this->getInputSocketReader(0); } -void MapValueOperation::executePixel(float *outputValue, float x, float y, PixelSampler sampler) +void MapValueOperation::executePixel(float output[4], float x, float y, PixelSampler sampler) { float src[4]; this->m_inputOperation->read(src, x, y, sampler); @@ -47,7 +47,7 @@ void MapValueOperation::executePixel(float *outputValue, float x, float y, Pixel if (value > texmap->max[0]) value = texmap->max[0]; - outputValue[0] = value; + output[0] = value; } void MapValueOperation::deinitExecution() -- cgit v1.2.3