diff options
Diffstat (limited to 'source/blender/compositor/operations/COM_OpenCLKernels.cl')
-rw-r--r-- | source/blender/compositor/operations/COM_OpenCLKernels.cl | 2 |
1 files changed, 1 insertions, 1 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); |