From d4c6159f38647c0196738608c3aa8cdeaebd8fa0 Mon Sep 17 00:00:00 2001 From: Tomoaki Teshima Date: Wed, 10 Jul 2019 23:47:47 +0900 Subject: [PATCH] fix program build failure --- modules/bioinspired/src/opencl/retina_kernel.cl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/bioinspired/src/opencl/retina_kernel.cl b/modules/bioinspired/src/opencl/retina_kernel.cl index 6bb0f80e9..301a54ce8 100644 --- a/modules/bioinspired/src/opencl/retina_kernel.cl +++ b/modules/bioinspired/src/opencl/retina_kernel.cl @@ -411,9 +411,9 @@ kernel void amacrineCellsComputing( float4 val_opl_off = vload4(0, opl_off); float4 magnoXonPixelResult = coeff * (vload4(0, out_on) + val_opl_on - vload4(0, prev_in_on)); - vstore4(fmax(magnoXonPixelResult, 0), 0, out_on); + vstore4(fmax(magnoXonPixelResult, 0.f), 0, out_on); float4 magnoXoffPixelResult = coeff * (vload4(0, out_off) + val_opl_off - vload4(0, prev_in_off)); - vstore4(fmax(magnoXoffPixelResult, 0), 0, out_off); + vstore4(fmax(magnoXoffPixelResult, 0.f), 0, out_off); vstore4(val_opl_on, 0, prev_in_on); vstore4(val_opl_off, 0, prev_in_off);