colour: unpack colour by ref to work around clang warning

This commit is contained in:
Danny Robson 2024-10-29 14:02:35 +10:00
parent b2e36f4e0f
commit 5718506b1d

View File

@ -86,7 +86,7 @@ exponentiate (float const u)
static cruft::vector3f
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 g = linearise (g_);