Fix OpenCL build error.

This commit is contained in:
2013-09-09 12:15:16 +00:00
parent d703f616db
commit 6c5df7567b

View File

@@ -70,7 +70,7 @@ __device void kernel_film_convert_to_half_float(KernelGlobals *kg,
/* buffer offset */ /* buffer offset */
int index = offset + x + y*stride; int index = offset + x + y*stride;
float4 *in = (__global float4*)(buffer + index*kernel_data.film.pass_stride); float4 *in = (float4*)(buffer + index*kernel_data.film.pass_stride);
half *out = (half*)rgba + index*4; half *out = (half*)rgba + index*4;
float scale = kernel_data.film.exposure*sample_scale; float scale = kernel_data.film.exposure*sample_scale;