diff options
Diffstat (limited to 'intern/cycles/kernel/kernel_compat_cpu.h')
-rw-r--r-- | intern/cycles/kernel/kernel_compat_cpu.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/intern/cycles/kernel/kernel_compat_cpu.h b/intern/cycles/kernel/kernel_compat_cpu.h index df7d39532aa..b96a84499b4 100644 --- a/intern/cycles/kernel/kernel_compat_cpu.h +++ b/intern/cycles/kernel/kernel_compat_cpu.h @@ -154,6 +154,7 @@ template<typename T> struct texture_image { break; default: kernel_assert(0); + return make_float4(0.0f, 0.0f, 0.0f, 0.0f); } return read(data[ix + iy*width]); } @@ -183,6 +184,7 @@ template<typename T> struct texture_image { break; default: kernel_assert(0); + return make_float4(0.0f, 0.0f, 0.0f, 0.0f); } float4 r = (1.0f - ty)*(1.0f - tx)*read(data[ix + iy*width]); @@ -231,6 +233,7 @@ template<typename T> struct texture_image { break; default: kernel_assert(0); + return make_float4(0.0f, 0.0f, 0.0f, 0.0f); } const int xc[4] = {pix, ix, nix, nnix}; @@ -298,6 +301,7 @@ template<typename T> struct texture_image { break; default: kernel_assert(0); + return make_float4(0.0f, 0.0f, 0.0f, 0.0f); } return read(data[ix + iy*width + iz*width*height]); @@ -335,6 +339,7 @@ template<typename T> struct texture_image { break; default: kernel_assert(0); + return make_float4(0.0f, 0.0f, 0.0f, 0.0f); } float4 r; @@ -402,6 +407,7 @@ template<typename T> struct texture_image { break; default: kernel_assert(0); + return make_float4(0.0f, 0.0f, 0.0f, 0.0f); } const int xc[4] = {pix, ix, nix, nnix}; |