Skip to content

gsk: Clip luminosity when clipping colors

Benjamin Otte requested to merge wip/otte/for-main into main

We want to clip to [0..1] so make sure that's the value we're targeting.

In particular this avoids cases where for r==g==b we could end up with a division by zero and undefined results causing random colors to be written by shaders.

Fixes: #7183 (closed)

Merge request reports

Loading