diff options
author | Monique Dewanchand <m.dewanchand@atmind.nl> | 2012-07-11 00:33:24 +0400 |
---|---|---|
committer | Monique Dewanchand <m.dewanchand@atmind.nl> | 2012-07-11 00:33:24 +0400 |
commit | e8e8ceaea2d8aa04d2216dbac82a0a907f8c435d (patch) | |
tree | 45ecd6a9dfe34129cdee14b454b90fdcd40722d1 /source/blender/compositor | |
parent | 8a4584d04daae39c76d1f46200a57d8f4f3c9d40 (diff) |
fix for Tiles bug - opencl:
[#31981] Bokeh Blur Node - Size input socket does not accept input from Value Input node, Values smaller than 0.1 will produce black output
Diffstat (limited to 'source/blender/compositor')
-rw-r--r-- | source/blender/compositor/operations/COM_OpenCLKernels.cl | 2 | ||||
-rw-r--r-- | source/blender/compositor/operations/COM_OpenCLKernels.cl.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/compositor/operations/COM_OpenCLKernels.cl b/source/blender/compositor/operations/COM_OpenCLKernels.cl index 1f3b28f15d3..f9b6d34bfc3 100644 --- a/source/blender/compositor/operations/COM_OpenCLKernels.cl +++ b/source/blender/compositor/operations/COM_OpenCLKernels.cl @@ -21,7 +21,7 @@ __kernel void bokehBlurKernel(__read_only image2d_t boundingBox, __read_only ima tempBoundingBox = read_imagef(boundingBox, SAMPLER_NEAREST, coords).s0; - if (tempBoundingBox > 0.0f) { + if (tempBoundingBox > 0.0f && radius > 0 ) { const int2 bokehImageDim = get_image_dim(bokehImage); const int2 bokehImageCenter = bokehImageDim/2; const int2 minXY = max(realCoordinate - radius, zero); diff --git a/source/blender/compositor/operations/COM_OpenCLKernels.cl.h b/source/blender/compositor/operations/COM_OpenCLKernels.cl.h index 1c223a527ca..2c9ec76501d 100644 --- a/source/blender/compositor/operations/COM_OpenCLKernels.cl.h +++ b/source/blender/compositor/operations/COM_OpenCLKernels.cl.h @@ -23,7 +23,7 @@ const char * clkernelstoh_COM_OpenCLKernels_cl = "/// This file contains all ope "\n" \ " tempBoundingBox = read_imagef(boundingBox, SAMPLER_NEAREST, coords).s0;\n" \ "\n" \ -" if (tempBoundingBox > 0.0f) {\n" \ +" if (tempBoundingBox > 0.0f && radius > 0 ) {\n" \ " const int2 bokehImageDim = get_image_dim(bokehImage);\n" \ " const int2 bokehImageCenter = bokehImageDim/2;\n" \ " const int2 minXY = max(realCoordinate - radius, zero);\n" \ |