Skip to content

Commit 03d3980

Browse files
committed
JavaCL: Fixed rgba2hsla routine
1 parent 2e40f52 commit 03d3980

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LibCL/src/main/resources/LibCL/rgba2hsla.cl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ inline float4 rgba2hsla(float4 rgba) {
2929
else //if (b == mx)
3030
h = 4.0f + (r - g) / diff;
3131
}
32-
h = clamp(h / 6.0f, 0, 1);
32+
h = clamp(h / 6.0f, 0.0f, 1.0f);
3333
return (float4)(h, s, l, a);
3434
}
3535

0 commit comments

Comments
 (0)