Fix CUDA compilation after OpenCL changes.
authorThomas Dinges <blender@dingto.org>
Sun, 14 Aug 2016 22:04:19 +0000 (00:04 +0200)
committerThomas Dinges <blender@dingto.org>
Sun, 14 Aug 2016 22:04:19 +0000 (00:04 +0200)
intern/cycles/kernel/kernel_textures.h

index 8d5bb75a428fdb4a542d6818a1ea4ac9e790ad84..f45da39bad5f692a59423a02cb33035a05528a34 100644 (file)
@@ -186,11 +186,13 @@ KERNEL_TEX(uint, texture_uint, __bindless_mapping)
 #endif
 
 /* packed image (opencl) */
+#ifdef __KERNEL_OPENCL__
 KERNEL_TEX(uchar4, texture_uchar4, __tex_image_byte4_packed)
 KERNEL_TEX(float4, texture_float4, __tex_image_float4_packed)
 KERNEL_TEX(uchar, texture_uchar, __tex_image_byte_packed)
 KERNEL_TEX(float, texture_float, __tex_image_float_packed)
 KERNEL_TEX(uint4, texture_uint4, __tex_image_packed_info)
+#endif
 
 #undef KERNEL_TEX
 #undef KERNEL_IMAGE_TEX