Cycles: Fix missing type declaration in OpenCL image
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 2 May 2017 13:39:18 +0000 (15:39 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 2 May 2017 13:39:33 +0000 (15:39 +0200)
Spotted by Mai in IRC, thanks!

intern/cycles/kernel/kernel_image_opencl.h

index 795f2e3149f9bd722c7c9427fb3a1c95f36597d4..90747e0935734674ae7273034a9b9cf366f4876e 100644 (file)
@@ -20,7 +20,7 @@
 
 ccl_device_inline float4 svm_image_texture_read(KernelGlobals *kg, int id, int offset)
 {
-       const texture_type = kernel_tex_type(id);
+       const int texture_type = kernel_tex_type(id);
        /* Float4 */
        if(texture_type == IMAGE_DATA_TYPE_FLOAT4) {
                return kernel_tex_fetch(__tex_image_float4_packed, offset);