Fix a few OpenCL compiler warnings.

This commit is contained in:
2016-09-03 23:06:12 +02:00
parent 95cb714511
commit e76e8fcdcc
4 changed files with 4 additions and 4 deletions

View File

@@ -112,7 +112,7 @@ template<typename T> struct texture_image {
ccl_always_inline float4 read(uchar r)
{
float f = r*(1.0f/255.0f);
return make_float4(f, f, f, 1.0);
return make_float4(f, f, f, 1.0f);
}
ccl_always_inline float4 read(float r)