diff options
author | Monique Dewanchand <m.dewanchand@atmind.nl> | 2012-07-11 00:46:42 +0400 |
---|---|---|
committer | Monique Dewanchand <m.dewanchand@atmind.nl> | 2012-07-11 00:46:42 +0400 |
commit | 315698543bfc675a0432b006a2fb94b4ed27b576 (patch) | |
tree | 5e113bcfab107e53c5637b20402a9f72a9b7dbea | |
parent | 9c464ee2bbdca6bfbb18624a62452179677f27a9 (diff) |
Fix for issue [#31981] for tiles opencl:
initialize radius with correct value
-rw-r--r-- | source/blender/compositor/operations/COM_BokehBlurOperation.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/compositor/operations/COM_BokehBlurOperation.cpp b/source/blender/compositor/operations/COM_BokehBlurOperation.cpp index a425e406884..a0cc8df826a 100644 --- a/source/blender/compositor/operations/COM_BokehBlurOperation.cpp +++ b/source/blender/compositor/operations/COM_BokehBlurOperation.cpp @@ -47,10 +47,8 @@ BokehBlurOperation::BokehBlurOperation() : NodeOperation() void *BokehBlurOperation::initializeTileData(rcti *rect, MemoryBuffer **memoryBuffers) { - //void *buffer = getInputOperation(0)->initializeTileData(NULL, memoryBuffers); lockMutex(); if (!this->m_sizeavailable) { - //updateGauss(memoryBuffers); updateSize(memoryBuffers); } void *buffer = getInputOperation(0)->initializeTileData(NULL, memoryBuffers); @@ -197,7 +195,9 @@ void BokehBlurOperation::executeOpenCL(OpenCLDevice* device, list<cl_kernel> *clKernelsToCleanUp) { cl_kernel kernel = device->COM_clCreateKernel("bokehBlurKernel", NULL); - + if (!this->m_sizeavailable) { + updateSize(inputMemoryBuffers); + } cl_int radius = this->getWidth() * this->m_size / 100.0f; cl_int step = this->getStep(); |