Skip to content

Commit 46a8df5

Browse files
committed
Fix OpenCL compilation error.
The message was: BUILD LOG: <kernel>:1912:3: error: subscripted access is not allowed for OpenCL vectors pixel[c] = 0.0; ^ ~
1 parent a4d29b0 commit 46a8df5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

data/kernels/basic.cl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1907,9 +1907,10 @@ rawoverexposed_falsecolor (
19071907
if(raw_pixel < threshold[c]) return;
19081908

19091909
float4 pixel = read_imagef(in, sampleri, (int2)(x, y));
1910+
float4 *p = &pixel;
19101911

19111912
// falsecolor
1912-
pixel[c] = 0.0;
1913+
p[c] = 0.0;
19131914

19141915
write_imagef (out, (int2)(x, y), pixel);
19151916
}

0 commit comments

Comments
 (0)