demosaic: fix wrong logic on opencl use