From 46a8df52085b7ed05747b0d171ec766e6fbf633c Mon Sep 17 00:00:00 2001 From: Pascal Obry Date: Mon, 26 Sep 2016 17:50:44 +0200 Subject: [PATCH] Fix OpenCL compilation error. The message was: BUILD LOG: :1912:3: error: subscripted access is not allowed for OpenCL vectors pixel[c] = 0.0; ^ ~ --- data/kernels/basic.cl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/kernels/basic.cl b/data/kernels/basic.cl index 5ac1ad779395..b570cd9ed6b3 100644 --- a/data/kernels/basic.cl +++ b/data/kernels/basic.cl @@ -1907,9 +1907,10 @@ rawoverexposed_falsecolor ( if(raw_pixel < threshold[c]) return; float4 pixel = read_imagef(in, sampleri, (int2)(x, y)); + float4 *p = &pixel; // falsecolor - pixel[c] = 0.0; + p[c] = 0.0; write_imagef (out, (int2)(x, y), pixel); }