summaryrefslogtreecommitdiff
path: root/opencl/c2g.cl.h
diff options
context:
space:
mode:
authorTéo Mazars <teo.mazars@ensimag.fr>2013-10-31 16:43:25 +0100
committerTéo Mazars <teo.mazars@ensimag.fr>2013-10-31 16:44:46 +0100
commit5bfa7251d606dd242679feaee33e161dee527069 (patch)
treebe835f28dee62a38c86e0d5f0744a9aadbadd403 /opencl/c2g.cl.h
parent1ff66f59f4081a331636d62b9ef9b5c35df20e4e (diff)
opencl: fix a bunch of opencl compilation error with pocl
Diffstat (limited to 'opencl/c2g.cl.h')
-rw-r--r--opencl/c2g.cl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/opencl/c2g.cl.h b/opencl/c2g.cl.h
index 3831faf3..451a1767 100644
--- a/opencl/c2g.cl.h
+++ b/opencl/c2g.cl.h
@@ -104,8 +104,8 @@ static const char* c2g_cl_source =
" range_sum += range; \n"
" } \n"
" \n"
-" float4 relative_brightness = relative_brightness_sum / iterations; \n"
-" float4 range = range_sum / iterations; \n"
+" float4 relative_brightness = relative_brightness_sum / (float4)(iterations);\n"
+" float4 range = range_sum / (float4)(iterations); \n"
" \n"
" if(max_envelope) \n"
" *max_envelope = pixel + (1.0f - relative_brightness) * range; \n"