Cycles: Fix missing type declaration in OpenCL image

Spotted by Mai in IRC, thanks!
This commit is contained in:
Sergey Sharybin 2017-05-02 15:39:18 +02:00
parent 143d7ad40f
commit 4846184095
1 changed files with 1 additions and 1 deletions

View 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);