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
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user