diff options
Diffstat (limited to 'opencl/colors-8bit-lut.cl.h')
-rw-r--r-- | opencl/colors-8bit-lut.cl.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/opencl/colors-8bit-lut.cl.h b/opencl/colors-8bit-lut.cl.h index 0567a78d..a63ba7ff 100644 --- a/opencl/colors-8bit-lut.cl.h +++ b/opencl/colors-8bit-lut.cl.h @@ -349,8 +349,8 @@ static const char* colors_8bit_lut_cl_source = " float4 tmp_v; \n" " \n" " tmp_v = (float4)(u8_gamma_to_linear_lut[(int)in_v.x], \n" -" u8_gamma_to_linear_lut[(int)in_v.x], \n" -" u8_gamma_to_linear_lut[(int)in_v.x], \n" +" u8_gamma_to_linear_lut[(int)in_v.y], \n" +" u8_gamma_to_linear_lut[(int)in_v.z], \n" " in_v.w / 255.0f); \n" " \n" " out_v = tmp_v * tmp_v.w; \n" @@ -367,8 +367,8 @@ static const char* colors_8bit_lut_cl_source = " uchar4 in_v = in[gid]; \n" " float4 tmp_v; \n" " tmp_v = (float4)(u8_gamma_to_linear_lut[(int)in_v.x], \n" -" u8_gamma_to_linear_lut[(int)in_v.x], \n" -" u8_gamma_to_linear_lut[(int)in_v.x], \n" +" u8_gamma_to_linear_lut[(int)in_v.y], \n" +" u8_gamma_to_linear_lut[(int)in_v.z], \n" " in_v.w / 255.0f); \n" " float2 out_v; \n" " \n" |