colour: unpack colour by ref to work around clang warning
This commit is contained in:
parent
b2e36f4e0f
commit
5718506b1d
@ -86,7 +86,7 @@ exponentiate (float const u)
|
|||||||
static cruft::vector3f
|
static cruft::vector3f
|
||||||
sRGB_to_XYZ (cruft::vector3f sRGB)
|
sRGB_to_XYZ (cruft::vector3f sRGB)
|
||||||
{
|
{
|
||||||
auto const [r_, g_, b_] = sRGB;
|
auto const &[r_, g_, b_] = sRGB;
|
||||||
|
|
||||||
float const r = linearise (r_);
|
float const r = linearise (r_);
|
||||||
float const g = linearise (g_);
|
float const g = linearise (g_);
|
||||||
|
Loading…
Reference in New Issue
Block a user