Fix non-SSE2 build

This commit is contained in:
Flössie 2019-09-25 11:33:56 +02:00
parent 851a12e165
commit 5a19632475

View File

@ -210,10 +210,12 @@ public:
return r * workingspace[1][0] + g * workingspace[1][1] + b * workingspace[1][2];
}
#ifdef __SSE2__
static vfloat rgbLuminance(vfloat r, vfloat g, vfloat b, const vfloat workingspace[3])
{
return r * workingspace[0] + g * workingspace[1] + b * workingspace[2];
}
#endif
/**
* @brief Convert red/green/blue to L*a*b