Fix OpenCL build error.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 9 Sep 2013 12:15:16 +0000 (12:15 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 9 Sep 2013 12:15:16 +0000 (12:15 +0000)
intern/cycles/kernel/kernel_film.h

index 3ef33a2703bfc91ef4e3c7162fa43735b55ce45f..8868a3350378b58578208817c4b5117434334cea 100644 (file)
@@ -70,7 +70,7 @@ __device void kernel_film_convert_to_half_float(KernelGlobals *kg,
        /* buffer offset */
        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;
        float scale = kernel_data.film.exposure*sample_scale;